2 questions regarding running installation file
this is my code:
Set objFSO = CreateObject("Scripting.FileSystemObject")
path = "C:\\xxx.exe"
'path = "\\Net\\xxx.exe"
If objFSO.FileExists(path) Then
log.Message("Execution File Exists")
Set WshShell = CreateObject("WScript.Shell")
WshShell.run Chr(34) & path & Chr(34)
set WshShell = nothing
log.Message("Execution File Lunched")
log.Message("Execution File Doesn't Exists")
set objFSO = nothing
1. the line: WshShell.run Chr(34) & path & Chr(34) works fine when i'm using Chr(34) but if change it to " (witch is the same) the script fail.why is that?
2.when i change the path to be path on a remote machine on the network the script also fail.why is that?
Re: 2 questions regarding running installation file
SmartBear Technical Community Manager, Testing Tools
Interested in more, visit our SmartBear community