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
June 19, 2007 4:40 PM
June 20, 2007 9:48 AM