ms77ao
Technical User
- Nov 26, 2007
- 4
Hi
Just wondering if is it possible to write a script that will check to see if a folder exist on it. If the folder does not exist then the computer name of the server should be exported to a csv file. I am having trouble with getting it to iterate the checking process of multiple domain controllers and then exporting the information to the csv. Any ideas or suggestions would be appreciated.
Set objFSO = CreateObject("Scripting.FileSystemObject")
strComputer = "ukdc0185"
If objFSO.FolderExists("\\" & strComputer & "\c$\program files\Veritas")Then
Wscript.echo "Backup exec installed"
Else
Wscript.Echo "Veritas folder does not exist."
End If
Just wondering if is it possible to write a script that will check to see if a folder exist on it. If the folder does not exist then the computer name of the server should be exported to a csv file. I am having trouble with getting it to iterate the checking process of multiple domain controllers and then exporting the information to the csv. Any ideas or suggestions would be appreciated.
Set objFSO = CreateObject("Scripting.FileSystemObject")
strComputer = "ukdc0185"
If objFSO.FolderExists("\\" & strComputer & "\c$\program files\Veritas")Then
Wscript.echo "Backup exec installed"
Else
Wscript.Echo "Veritas folder does not exist."
End If