Re: vbscript fails to start windows application

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Ray at <%=sLocation%> [MVP] (%=sLocation%)
Date: 02/19/04


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
>
>


Relevant Pages

  • CGIscript.net - csMailto.cgi - Remote Command Execution
    ... CGIscript.net - csMailto.cgi - Remote Command ... csMailto is a perl cgi formmail script developed by ... execute command on server and mail output to anyone ...
    (Bugtraq)
  • Re: batch file to delete files based on criteria
    ... The Advanced Version of Snapshot will create date/time coded backups that ... This script is included with the FREE Advanced NT/2K/XP/K3 Command Library ... script will perform CONSISTENTLY under Windows NT4, 2000, XP and Server ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: Executing command with Runtime.getRuntime.exec() fails
    ... More portable, since on my windows system at least, there is an ls. ... command at the command line. ... The appropriate command interpreter for each os could be found through ... be sure, and programming is about certainty, is to explicitly execute the ...
    (comp.lang.java.programmer)
  • Re: shell scripting
    ... and am assuming an sh-compatible shell here.... ... command 1 options arguments ... To run the script, do: ... then you need to use the full path to execute it: ...
    (comp.unix.questions)
  • Re: shell scripting
    ... and am assuming an sh-compatible shell here.... ... command 1 options arguments ... To run the script, do: ... then you need to use the full path to execute it: ...
    (comp.unix.shell)