alfa Posted May 12, 2004 Share Posted May 12, 2004 I am trying to run an exe under \program files\winrar\hotfix.exe with[GuiRunOnce]%systemdrive%\install\progs.cmdI triedECHO.ECHO Example...ECHO Please wait...start /wait %systemdrive%\progra~1\winrar\hotfix.exeandECHO.ECHO Example...ECHO Please wait...start /wait %systemdrive%\program files\winrar\hotfix.exeboth didnt work. Is there a way to make this thing run ? Link to comment Share on other sites More sharing options...
gosh Posted May 12, 2004 Share Posted May 12, 2004 Just use %programfiles%-gosh Link to comment Share on other sites More sharing options...
alfa Posted May 12, 2004 Author Share Posted May 12, 2004 THX a million Link to comment Share on other sites More sharing options...
A-star Posted May 12, 2004 Share Posted May 12, 2004 thanks a lot, was helpfull for me too. Link to comment Share on other sites More sharing options...
RyanVM Posted May 12, 2004 Share Posted May 12, 2004 Put quotes around the path to avoid issues with spaces Link to comment Share on other sites More sharing options...
alfa Posted May 13, 2004 Author Share Posted May 13, 2004 I also tried both didnt workECHO.ECHO Example...ECHO Please wait...start /wait %programfiles%\winrar\hotfix.exeWhen it is like this it give this error "Windows cannot find 'c:\program'.Make sure you typed the name correctly....."ECHO.ECHO Example...ECHO Please wait...start /wait "%systemdrive%\program files\winrar\hotfix.exe"When it is like this it give this error "^CTerminate batch job <yes/no>?"anyone have any suggestions ? Link to comment Share on other sites More sharing options...
RyanVM Posted May 13, 2004 Share Posted May 13, 2004 start /wait "%programfiles%\winrar\hotfix.exe" Link to comment Share on other sites More sharing options...
alfa Posted May 13, 2004 Author Share Posted May 13, 2004 start /wait "%programfiles%\winrar\hotfix.exe"been there done that.that line opens an other command window titled hotfix.exe Link to comment Share on other sites More sharing options...
alfa Posted May 14, 2004 Author Share Posted May 14, 2004 can anyone help me with this ? Link to comment Share on other sites More sharing options...
RyanVM Posted May 14, 2004 Share Posted May 14, 2004 I've had similar problems to this (trying to launch a standard GUI Win32 app from a command prompt) with not very good results. One thing you might try (though start /wait wouldn't quite work correctly with it) is to pack it in a self-extracting RAR archive and call that. You can configure the SFX module to automatically launch the program upon extraction. Link to comment Share on other sites More sharing options...
khennsu Posted May 14, 2004 Share Posted May 14, 2004 okay, so i am a complete newbie id***, but for what reason are you hitting Ctrl+C during the call to hotfix.exe in your:^CTerminate Batch Job? Y/Nexample?Does the machine get hung up? If nothing else, the non-appearance of the 'cannot find...' message probably indicates that you've successfully called hotfix.exe. So it would seem that your original problem has been solved in favor (?) of a different one, i.e., why is it taking so long to run hotfix.exe that you are compelled to hit Ctrl+C?Slower machine?Hope this helps and isn't a waste of anyone's time. :-) Link to comment Share on other sites More sharing options...
alfa Posted May 14, 2004 Author Share Posted May 14, 2004 I am not hitting ctrl+C. It is doing all by it self.As I said if I dostart /wait "%programfiles%\winrar\hotfix.exe"this line opens an other command window titled hotfix.exe when I close it gives the "^CTerminate Batch Job? Y/N" message. And the machines does not hung up... Link to comment Share on other sites More sharing options...
cyberdiamond Posted May 18, 2004 Share Posted May 18, 2004 I have also found this problem!Some 32Bit windows programs also don't seem to like being called from a cmd file.There must be some reason why and a way to do it? Link to comment Share on other sites More sharing options...
pinout Posted May 18, 2004 Share Posted May 18, 2004 use START "" /WAIT "long path\whatever"the START command actually uses the first quoted parameter as the window title, passing "" will fill the first quoted parameter with null and the second one will work Link to comment Share on other sites More sharing options...
[BM]Crusher Posted May 18, 2004 Share Posted May 18, 2004 @pinout: i've never had to do that when using long filename executioni for one can't understand why it doesn't work anyway?i have run almost every program imaginable through the start command and never had a problem...i also cannot understand why "%programfiles%\winrar\hotfix.exe" doesn't work and loads another dos windowbeen there done that.that line opens an other command window titled hotfix.exewhat does the other window titled hotfix.exe do? maybe that is the hotfix being run?this sounds like what was happening to me when i was trying to get the WPI.HTA running through DetachedProgram by calling mshta.exe.... my problem there was it was far too early in the GUI setup stage to be calling HTA files or even mshta.exe (If i ran "start /wait mshta.exe wpi.hta" i would get a command window pop up titled mshta.exe, whereas if i ran that in windows it would load the wpi.hta file)... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now