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
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!