none
How to add a RunSynchronousCommand-path to delete a dir or file? RRS feed

  • Question

  • Hello everyone:
                    I need to add a RunSynchronousCommand to delete a existing file or Dir, but I don't konw this Coomand, so ask everyone to help me resolv this problem.
                     Do you have a good idea? 
                   

    Tracy Yang
    Thursday, December 24, 2009 6:17 AM

Answers

  • An easy way to accomplish this would be to create a .BAT file with all the commands you want to execute. Then, you can just tell the Synchronous Command to execute the BAT file, which will remove any files or directories you need.

    Remember that you'll also need to get the BAT file onto your end image, so you can use an OEM folder to do that, then the synchronous command to execute it.
    • Marked as answer by Tracy Yang Friday, December 25, 2009 2:28 AM
    Thursday, December 24, 2009 5:36 PM

All replies

  • An easy way to accomplish this would be to create a .BAT file with all the commands you want to execute. Then, you can just tell the Synchronous Command to execute the BAT file, which will remove any files or directories you need.

    Remember that you'll also need to get the BAT file onto your end image, so you can use an OEM folder to do that, then the synchronous command to execute it.
    • Marked as answer by Tracy Yang Friday, December 25, 2009 2:28 AM
    Thursday, December 24, 2009 5:36 PM
  • Thank you very much!  I will creat a .bat file to delete those files.
    Friday, December 25, 2009 2:27 AM