I currently have a web farm and and trying to use a vb script to delete file from remote servers. I have tried the following scripts.
Shell ("del server1C$dir*.* /F /S /Q") This gives the error message, ensure files exist.
then I tried this
newProc = Diagnostics.Process.Start("c:windowssystem32cmd.exe", "del server1C$dir*.* /F /S /Q")
this code opens the DOS box but doesn't execute the del command.
Any help would be appreciated. Thanks