[1] Remove a non-empty folder (see Remove a Directory and All Subdirectories):
RMDIR c:\blah /s /q
/s - remove directory when it's not empty.
/q - quiet mode, no prompt for yes/no.
[2] in vbs file, call a dos command, may have error "file not found", adding "CMD /C" before the command will remove the error:
objShell.Exec("cmd /C rmdir folder_to_remove /S /Q")
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment