Forum Discussion
Oferv
15 years agoSuper Contributor
Hi you still here?
i manage reproduce it.
this the func:
function RunInstallationFile()
{
var objFSO
objFSO = CreateObject("Scripting.FileSystemObject")
var path = "D:\\Install\\Nero 7\\Nero-7.2.3.2b_eng.exe"
//path = "\\Net\\xxx.exe"
if (objFSO.FileExists["path"])
{
log.Message("Execution File Exists")
var WshShell = CreateObject("WScript.Shell");
WshShell.run (Chr(34) & path & Chr(34))
var WshShell = nothing
log.Message("Execution File Lunched")
}
else
log.Message("Execution File Doesn't Exists")
var objFSO = nothing
}
the error i'm getting for the line objFSO = CreateObject("Scripting.FileSystemObject") is "Object Excepted"
any idea?
Thanks
i manage reproduce it.
this the func:
function RunInstallationFile()
{
var objFSO
objFSO = CreateObject("Scripting.FileSystemObject")
var path = "D:\\Install\\Nero 7\\Nero-7.2.3.2b_eng.exe"
//path = "\\Net\\xxx.exe"
if (objFSO.FileExists["path"])
{
log.Message("Execution File Exists")
var WshShell = CreateObject("WScript.Shell");
WshShell.run (Chr(34) & path & Chr(34))
var WshShell = nothing
log.Message("Execution File Lunched")
}
else
log.Message("Execution File Doesn't Exists")
var objFSO = nothing
}
the error i'm getting for the line objFSO = CreateObject("Scripting.FileSystemObject") is "Object Excepted"
any idea?
Thanks