Questions tagged [movefileex]

21 questions
0
votes
1 answer

File move access denied caused by VS2013 project settings (maybe?)

I'm having trouble with an application which moves files from one location to another, using the Windows API. The problem isn't the code, it appears to be the project settings, but I don't know what to look for or where. I created a project, wrote a…
Ben
  • 427
  • 5
  • 17
0
votes
1 answer

relocate a dynamic file in VBA

I am trying to have an user select a file and choose a to upload to another location ( like a shared drive). I am using the name function but I realized I am having trouble getting the file name and put into the "toPath" since it is up to the user.…
Noah Xu
  • 167
  • 3
  • 11
0
votes
1 answer

How to open text files and move them to a folder using VBA?

I need some help with a project in which I must open a list of text files, find a pattern in their contents and then move to other folders according to the pattern. For example, in a list of text files, I must find which of them have the word "blue"…
Tcorrea13
  • 3
  • 3
0
votes
2 answers

MoveFileEx() returns ERROR_SHARING_VIOLATION

I'm developing a program which could do live-update to modules of our main program. If the main exe is running, it needs to 1) rename it to temporary name, eg: %productpath%\main.exe ->…
liu jia
  • 47
  • 4
0
votes
0 answers

Delete records from Windows registry after MoveFileEx added them

In my software I am using MoveFileEx to mark my files for deletion to be deleted on system reboot. That is in the case when for some reasons I cannot delete the file with my software (for example it is locked by other software). But I assume that…
Boris Todorov
  • 390
  • 1
  • 4
  • 17
0
votes
1 answer

Privilege used by MoveFileEx()

When calling MoveFileEx() and using MOVEFILE_DELAY_UNTIL_REBOOT for dwFlags. During the actual moving of file what privilege does it use? Thanks Kazuo!
redwud
  • 174
  • 3
  • 8
1
2