
WScript.shell run method returns before the program starts!
Hi, thanks for the reply!
I tried your code but it only pops up a MS-DOS prompt window and nothing
else happens. I dont even see the startup screen as I did before. Do I
have to write anything else than:
<pre>
fs.run("%comspec% /k "+cmd,1,true);
<pre>
<br>
Im running Windows ME. The program I'm trying to launch (mame32) is a
windows32 application and takes a filename(romname)as parameter. Mame32
is an emulator and should start the romname specified in fullscreen
mode.
<br>
If I use this code:
<pre>
err = fs.run(cmd, 1, true);
alert(err);
</pre>
Err is 1. I don't know if that helps?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!