vbscript fails to start windows application

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


Date: Thu, 19 Feb 2004 02:54:37 +0100

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

  • Re: General VBScript Questions
    ... Windows allows you to run VBScript files. ... script language that could make use of a limited GUI. ... like the Windows Script Host or IE. VB.Net ...
    (microsoft.public.scripting.vbscript)
  • Re: vbscript or perl
    ... I've never done Windows scripting before. ... > perl. ... > The script in question most does database stuff e.g. calls stored procs, ... I think clearly vbscript would be the way to go. ...
    (comp.lang.perl.misc)
  • FormatMessage? - Error Text from Error Number
    ... I am using the following in a VBScript file run by Windows Script Host Version 5.1 on Windows 2000: ... This works fine if the file does not already exist, BUT strBackupLog returns 183 indicating that the File exists the second time I run my Script. ... In C++ you use FormatMessageand the list of System Errors has: ... So can you call FormatMessageor equivalent from VBScript? ...
    (microsoft.public.scripting.vbscript)
  • 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: Run Unix script and permissions...
    ... an expert Windows user. ... as such on unix systems files are usually created without execute permissions. ... script simply clicking on it in the Finder, instead of open the shell, ...
    (comp.sys.mac.system)