How do I check two folders for existence. Then run the command.
I'm guessing something to do with null but the way I have it, it checks each folder separately.
MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA, MCTS, MCP+I, MCP
I'm guessing something to do with null but the way I have it, it checks each folder separately.
Code:
folderPath = "C:\Program Files\Trend Micro\OfficeScan Client"
strfolder = "C:\Program Files (x86)\Trend Micro\OfficeScan Client"
'Checking
If NOT objFSO.FolderExists(folderPath) Then
Return = WshShell.Run(Chr(34) & strProgPath & Chr(34),0,True)
else if NOT objFSO.FolderExists(strfolder) Then
Return = WshShell.Run(Chr(34) & strProgPath & Chr(34),0,True)
wscript.echo strfolder
End If
End if
MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA, MCTS, MCP+I, MCP