wshell.run arguments don't work 
Author Message
 wshell.run arguments don't work

I want to launch two programs, one minimized and the other not. Per
documentation you can use arguments to set the initial window for the
launched application. Any idea why the following launches both windows
maximized even tho I specified minimized on one of them? I have tried all
window arguments with no resulting difference in how the windows launch.

set wshell = CreateObject("WScript.Shell")
wshell.run "D:\CTCBR\PPTWin.exe", 2
wshell.run "D:\CTCBR\Bridge.exe"

I also tried
return = wshell.run("D:\CTCBR\PPTWin.exe", 6)

Any help would be appreciated.



Wed, 25 Jun 2003 00:01:15 GMT  
 wshell.run arguments don't work
Some windows programs do NOT honor the requested window style...

Try creating an ordinary shortcut for these program and you'll probably see that the window style
requested is not honored there either...

--
Michael Harris
Microsoft.MVP.Scripting
--

Please do not email questions - post them to the newsgroup instead.
--

Quote:

> I want to launch two programs, one minimized and the other not. Per
> documentation you can use arguments to set the initial window for the
> launched application. Any idea why the following launches both windows
> maximized even tho I specified minimized on one of them? I have tried all
> window arguments with no resulting difference in how the windows launch.

> set wshell = CreateObject("WScript.Shell")
> wshell.run "D:\CTCBR\PPTWin.exe", 2
> wshell.run "D:\CTCBR\Bridge.exe"

> I also tried
> return = wshell.run("D:\CTCBR\PPTWin.exe", 6)

> Any help would be appreciated.



Wed, 25 Jun 2003 03:04:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Running shortcut don't work on 2000?

2. WshShell.Run don't run WHY ???

3. Wshell.Run won't wait for me

4. Ghostscript's ps2ascii don't work

5. run WShell.Run in ASP page w/o path

6. run WShell.Run in ASP page w/o path

7. formatCurrency & formatNumber don't work

8. focus don't work in IE5.5

9. dynamically created anchors don't work

10. Update: Rollovers don't work in IE

11. HELP - Radio error trapping don't work on IE3

12. Why don't my Radio buttons work?!?

 

 
Powered by phpBB® Forum Software