Indigo Rose Software
  #1  
Old 10-02-2004
DAK DAK is offline
Forum Member
 
Join Date: Jul 2004
Posts: 9
File.Run

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
Reply With Quote
  #2  
Old 10-03-2004
csd214 csd214 is offline
Forum Member
 
Join Date: Oct 2001
Location: Norway
Posts: 939
I think you have forgotten the escape sequence in the arguments.

Quote:
Originally Posted by Help Doc
The backslash and quote (\") is known as an escape sequence. An escape sequence is a special sequence of characters that gets converted or “translated” into something else by the script engine. Escape sequences allow you to include things that can’t be typed directly into a string.

\" - quotation mark
If the uninstall string is:
C:\WINDOWS\iun6002.exe "D:\Program Files\TIM\irunin.ini"
the elements are:
strUninstallCmd = _WindowsFolder.."\\iun6002.exe"
strUninstallArgs = "\"D:\\Program Files\\TIM\\irunin.ini\"";

All of us has experienced that an action we have written didn't work as expected. It's then a good idea to debug with a Dialog.Message Box – or the great feature "The Debug Window" which you didn't have in SUF6.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
File.run _sourcefolder problem SpudGunMan AutoPlay Media Studio 5.0 26 09-07-2004 07:32 PM
File.Run Question fcc AutoPlay Media Studio 5.0 5 08-04-2004 03:20 PM
how i can make an application to run tech_29 AutoPlay Media Studio 5.0 4 08-02-2004 04:08 PM
How set FullScreem using File.run Wizardo AutoPlay Media Studio 5.0 0 07-30-2004 01:56 AM
Newbie (File.Run) Blue AutoPlay Media Studio 5.0 6 02-02-2004 06:31 PM


All times are GMT -6. The time now is 07:50 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software