.Run has an optional WindowStyle parameter that you can use to control the 
appearance of the opened window (if it's a visibility thing you are worried 
about)

Cheers
Ken

-----Original Message-----
From: Ben Scott [mailto:[email protected]] 
Sent: Friday, 23 January 2009 1:44 PM
To: NT System Admin Issues
Subject: Re: Retaining permissions when copying folders

On Thu, Jan 22, 2009 at 8:05 PM, its.mike <[email protected]> wrote:
> 2. use cscript and run your script from a cmd prompt (that way the box won't
> disappear)

  In my experience, WshShell.Run always opens a new window, even if
you're running it with CSCRIPT.  Is there another way?

  I do second the use of CSCRIPT anyway, just because it means you can
embed lots of debugging/progress output with WScript.Echo without
having to [OK] over and over again.


~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to