May 12, 200422 yr 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 ?
May 13, 200422 yr Author 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 ?
May 13, 200422 yr Author start /wait "%programfiles%\winrar\hotfix.exe"been there done that.that line opens an other command window titled hotfix.exe
May 14, 200422 yr 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.
May 14, 200422 yr 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. :-)
May 14, 200422 yr Author 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...
May 18, 200422 yr 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?
May 18, 200422 yr 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
May 18, 200422 yr @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)...
Create an account or sign in to comment