DAK
10-02-2004, 11:25 AM
Ref: 'action run exe and argument by jenny62 9/24'
I am having the same issue.
I am trying to call sf6 uninstaller from sf7.
Example: File.Run(SessionVar.Expand("%WindowsFolder%").."\\iun6002.exe", _
SessionVar.Expand("%AppFolder%").."\\irunin.ini", "", SW_SHOWNORMAL, true); [Using or not using the Working Folder makes no difference]
The error message is "Could not load initialization file."
Calling this from the command prompt works just fine. Calling this from within VB works just fine (Shell function).
The only way I have been able to get the File.Run to work is to place 'irunin.ini' in the %WindowsFolder% and use %WindowsFolder% as the passed argument.
Any suggestion?
Dave
I am having the same issue.
I am trying to call sf6 uninstaller from sf7.
Example: File.Run(SessionVar.Expand("%WindowsFolder%").."\\iun6002.exe", _
SessionVar.Expand("%AppFolder%").."\\irunin.ini", "", SW_SHOWNORMAL, true); [Using or not using the Working Folder makes no difference]
The error message is "Could not load initialization file."
Calling this from the command prompt works just fine. Calling this from within VB works just fine (Shell function).
The only way I have been able to get the File.Run to work is to place 'irunin.ini' in the %WindowsFolder% and use %WindowsFolder% as the passed argument.
Any suggestion?
Dave