Results 1 to 2 of 2

Thread: Use "MoveFile" and "PendMoves" to Move or Delete a File That is Always in Use

  1. #1
    nitinagarwal1988's Avatar
    nitinagarwal1988 is offline Microsoft MVP
    Join Date
    Jan 2009
    Location
    Pilani, India
    Posts
    1,570

    Lightbulb Use "MoveFile" and "PendMoves" to Move or Delete a File That is Always in Use

    Files can’t be moved when they’re in use by the operating system or an application. If a file is constantly in use, you can schedule Windows Vista to move the file during startup using the MoveFile tool, which you can download for free.

    Use MoveFile exactly like you would use the Move command. For example:

    movefile file.txt test\file.txt

    The file will not be moved immediately. However, the next time the computer is restarted, Windows will move the file. If you want 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 ""

    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

    From the Microsoft Press book Windows Vista Resource Kit, Second Edition.

  2. #2
    HappyAndyK's Avatar
    HappyAndyK is offline Site Administrator
    Join Date
    Jun 2008
    Posts
    7,542

    Default

    Hmmm ... interesting !!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22