Re: vbscript fails to start windows application
From: Ray at <%=sLocation%> [MVP] (%=sLocation%)
Date: 02/19/04
- Next message: Steve C. Ray: "Re: Upgrade from 98se to XP Pro"
- Previous message: weave: "Re: no internet!!!"
- In reply to: Magnus: "vbscript fails to start windows application"
- Next in thread: Magnus: "Re: vbscript fails to start windows application"
- Reply: Magnus: "Re: vbscript fails to start windows application"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 18 Feb 2004 21:02:17 -0500
Drop "start" from your command. Start is not an executable or a file. It's
a command within the cmd command interpreter. Or, if you want to use start
(shouldn't be necessary), use "cmd.exe /c start D:\..\..2.exe"
--
Ray at home
Microsoft ASP MVP
"Magnus" <no@spam.com> wrote in message 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
>
>
- Next message: Steve C. Ray: "Re: Upgrade from 98se to XP Pro"
- Previous message: weave: "Re: no internet!!!"
- In reply to: Magnus: "vbscript fails to start windows application"
- Next in thread: Magnus: "Re: vbscript fails to start windows application"
- Reply: Magnus: "Re: vbscript fails to start windows application"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|