VB Script to check if folder exist and delete on remote machines
Script to check files on remote computer and delete them if they are available. ON ERROR RESUME NEXT Set objfso = CreateObject ("Scripting.FileSystemObject") Set computerList = objfso.OpenTextFile ("C:\Scripts\computerList.txt", 1) Set outputList = objfso.OpenTextFile ("C:\Scripts\outputList.txt", 2, True) Do While Not computerList.AtEndOfStream strComputer = computerList.ReadLine If objFSO.FolderExists("\\" & strComputer & "\F$\oldfiles") Then Set strFolderPath = objFSO.GetFolder("\\" &…