Delete Folders

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9322
    jsira7
    Participant

    Hey Doug… I need to delete a folder from multiple workstations. Would I be able to do this in Batch Patch? If so, what Action would I use?

    Thanks for your time in advance! Love the product!

    #11508
    doug
    Moderator

    You can use a remote command in BP to do this. We might add more direct functionality for deleting files/folders in a future version.

    For now though…

    To remove a single file:

    Remote Command 3/4 (logged output):

    del "C:Temptemp2myfile.txt" /q


    To remove an entire directory:

    Remote Command 3/4 (logged output):

    rmdir "C:Temptemp2" /s /q

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.