tom13 Posted January 4, 2008 Posted January 4, 2008 Hi, I'm using this code to run a server application: Run("C:\Documents and Settings\Tom\Bureaublad\Glimote WoW Server\Ascent_Rev2554\Ascent Rev2554\logonserver.exe") But when I run it, the window opens and 1 ms later quits immediately again, and the process has terminated too. It's a dos/cmd program. anyone knows how to fix this?
JamesBond Posted January 4, 2008 Posted January 4, 2008 Hi tom13... Are you sure there aren't errors in the exe??
hades480bc Posted November 29, 2008 Posted November 29, 2008 (edited) As this is a very old post, I'm guessing that this has already been resolved. I also had a similar issue. I found a post elsewhere that lead to my solution somewhere on here (but don't remember exactly where) Global $WARCRAFT1PATH = "C:\WARCRAFT" local $var $var = "CD " & $WARCRAFT1PATH Run(@COMSPEC & " /k Dir C:\") WinActive("cmd.exe", 1) sleep (100) Send ($var,1) send ('{ENTER}') Sleep (100) Send ("war",1) Sleep (100) send ('{ENTER}') ;; the program will run, do the following to exit ms dos prompt WinActive("cmd.exe", 1) Send ("exit",1) Sleep (100) send ('{ENTER}') Edited November 29, 2008 by hades480bc
November Posted November 29, 2008 Posted November 29, 2008 As far as i see, the exe is launched... So to me, thats a error from the exe file that you are calling. Cheers Old Scriptology Visual Ping 1.8 - Mass Ping Program with export to txt delimited. Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code. Desktop 2 RGB - Pick a color in the desktop and get the RGB code. ShootIT 1.0 - Screen Capture full and partial screen [font="'Arial Black';"]Remember Remember The Fifth of November.[/font]
system24 Posted November 29, 2008 Posted November 29, 2008 Hi, I'm using this code to run a server application: Run("C:\Documents and Settings\Tom\Bureaublad\Glimote WoW Server\Ascent_Rev2554\Ascent Rev2554\logonserver.exe") But when I run it, the window opens and 1 ms later quits immediately again, and the process has terminated too. It's a dos/cmd program. anyone knows how to fix this? DOS programs. Sometimes you need to run them through the command prompt to work properly. You could do it like hades480bc's example or make a batch file C:\Documents and Settings\Tom\Bureaublad\Glimote WoW Server\Ascent_Rev2554\Ascent Rev2554\logonserver.exe and execute that batch file. [center]It's a question of mind over matter, if I don't mind, it doesn't matter.[/center]
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