Re: vbscript fails to start windows application
From: Magnus (no_at_spam.com)
Date: 02/19/04
- Next message: Sharon F: "Re: Screen position"
- Previous message: kurt: "Re: WinXP Can I convert to a dynamic disk without losing files?"
- In reply to: Magnus: "vbscript fails to start windows application"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 19 Feb 2004 03:22:24 +0100
"Magnus" <no@spam.com> skrev i melding news:403417ea$1@news.broadpark.no...
> Hope someone can help me on this one..
>
> I am trying to execute some applications from within vbscript using
> wscript.shell "run" function. What happens is that the script executes
> without any errors or warnings, one of the application (battlefield1942)
im
> trying to start even generates a pid file as it normally does when started
> up "manually". Another application however, starts as expected, so it
seems
> almost random from my angle. The application I can't seem to start is
Aida32
> and Battlefield1942. I have tried executing notepad in vbscript, and that
> works fine, also another application that starts fine is the game
> "Blitzkrieg". The thing is that the same script that fails to start aida32
> under windowsxp, is the very same script that successfully starts aida32
> under windows 2000. So it definitively seems to be related to Windows XP
> somehow, the question is how ??
>
> ' The script lines im currently using, which also fails
> Set sh = CreateObject("Wscript.Shell")
> sh.run "start D:\Games\bf1942\BF1942.exe"
> Set sh = nothing
>
> - Magnus
>
>
Correction..
Script applicable to my problem is this one, and not the one in the previous
post:
Set sh = CreateObject("Wscript.Shell")
sh.run "D:\Games\bf1942\BF1942.exe"
Set sh = nothing
On a further note, should there be any doubt, using the path above in
start/run works.
- Magnus
- Next message: Sharon F: "Re: Screen position"
- Previous message: kurt: "Re: WinXP Can I convert to a dynamic disk without losing files?"
- In reply to: Magnus: "vbscript fails to start windows application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|