movefile file.txt test\file.txt
Movefile v1.0 - copies over an in-use file at boot time
Move successfully scheduled.
If you do this, the file won’t be moved immediately. However, if the computer is restarted next time, Windows will move the file. At the same time, if you wish to delete a file that is constantly in use (a common requirement for removing malicious software), provide "" as the destination. For example:
movefile file2.txt ""
Movefile v1.0 - copies over an in-use file at boot time
Move successfully scheduled.
The same download that includes MoveFile includes the PendMoves command, which displays moves and deletions that have been scheduled. You can simply run the command without parameters, as the following example demonstrates:
pendmoves
PendMove v1.1
Copyright (C) 2011 Mark Russinovich
Sysinternals - wwww.sysinternals.com
Source: C:\Users\User1\Documents\file.txt
Target: C:\Users\User1\Documents\dest\file.txt
Source: C:\Users\User1\Documents\file2.txt
Target: DELETE
Time of last update to pending moves key: 10/23/2011 10:08 AM
B y How to , Tips