I'm trying to get an program to execute in a VBS Script.
The desktop's shortcut target line to run it manually is:
"C:\Program Files\ILeads58\Rms\ILeads.exe" -t -cC:\PROGRA~1\ILeads58\UserConfigs/%username%.fpw
I can also run this line in the start/run:
"C:\Program Files\ILeads58\Rms\ILeads.exe" -t -c"C:\Program Files\ILeads58\UserConfigs/%username%.fpw"
Now on to the VBS part:
I have the following setup:
Dim sUserName, sCfgFile, sCmd
sUserName = sUserName = oShell.ExpandEnvironmentStrings("%UserName%")
sCfgFile = "C:\Program Files\ILeads58\UserConfigs\" & sUserName & ".fpw"
sCmd = "C:\Program Files\ILeads58\Rms\ILeads.exe -t -c" & sCfgFile '<---- Having issues with this line... needs to have the ""?????
Set oExec = oShell.Exec (sCmd)
The desktop's shortcut target line to run it manually is:
"C:\Program Files\ILeads58\Rms\ILeads.exe" -t -cC:\PROGRA~1\ILeads58\UserConfigs/%username%.fpw
I can also run this line in the start/run:
"C:\Program Files\ILeads58\Rms\ILeads.exe" -t -c"C:\Program Files\ILeads58\UserConfigs/%username%.fpw"
Now on to the VBS part:
I have the following setup:
Dim sUserName, sCfgFile, sCmd
sUserName = sUserName = oShell.ExpandEnvironmentStrings("%UserName%")
sCfgFile = "C:\Program Files\ILeads58\UserConfigs\" & sUserName & ".fpw"
sCmd = "C:\Program Files\ILeads58\Rms\ILeads.exe -t -c" & sCfgFile '<---- Having issues with this line... needs to have the ""?????
Set oExec = oShell.Exec (sCmd)