Re: vbscript fails to start windows application

From: Magnus (no_at_spam.com)
Date: 02/19/04


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



Relevant Pages

  • Re: If user in group?
    ... just the 'execute program'... ... the command line to the vbscript. ... > What object do I use in SMSI to execute and read the script exit code? ... >> with the right membership... ...
    (microsoft.public.sms.installer)
  • Re: vbscript fails to start windows application
    ... > I am trying to execute some applications from within vbscript using ... is the very same script that successfully starts aida32 ...
    (microsoft.public.scripting.vbscript)
  • Re: Executing a patch with alternate credentials
    ... > I am using a vbscript to install MS OS updates and would like to use ... > different credentials to execute the patch file then that of the user ... > running the script. ...
    (microsoft.public.scripting.vbscript)
  • vbscript fails to start windows application
    ... I am trying to execute some applications from within vbscript using ... The thing is that the same script that fails to start aida32 ... So it definitively seems to be related to Windows XP ...
    (microsoft.public.windowsxp.help_and_support)
  • vbscript fails to start windows application
    ... I am trying to execute some applications from within vbscript using ... The thing is that the same script that fails to start aida32 ... So it definitively seems to be related to Windows XP ...
    (microsoft.public.scripting.vbscript)