# Problem : PSEXEC Remote Delete directory

Problem : PSEXEC Remote Delete directory

i am trying to use PSexec to delete a directory on a list of computers. I am not real good at writing Bat files so not sure if i should use a bat file to do this. i have tried sending normal delete commands but from what i am reading a bat file seems to be the trick. basically i want to delete the c:windowssystem32ccm directory and the c:windowssystem32ccmsetup directory. Please  help

Solution : PSEXEC Remote Delete directory

psexec \remotePC cmd /c rmdir /s /q c:windowssystem32ccm
psexec \remotePC cmd /c rmdir /s /q c:windowssystem32ccmsetup

should do it..