Hallo,
how can i run powershell script without popup of console box ? may it is
possible about vbscript ? i can not use c# or vb.net, only script languages !
Hallo,
how can i run powershell script without popup of console box ? may it is
possible about vbscript ? i can not use c# or vb.net, only script languages !
If you are using PowerShell Community Extensions, you can do this:
start-process PowerShell.exe -arg $pwd\foo.ps1 -WindowStyle Hidden
If not, then look up the System.Diagnostics.Process type in the .NET
Framework. Start-Process is just a cmdlet wrapper around that type.
--
Keith
http://www.codeplex.com/powershellcx
"yesso" <yesso@xxxxxx> wrote in message
news:F494BF50-7EE8-45B8-BE8A-5DF59082E493@xxxxxx
> Hallo,
>
> how can i run powershell script without popup of console box ? may it is
> possible about vbscript ? i can not use c# or vb.net, only script
> languages !
i will use the vbscript variant because i will invoke powershell from a
windows installer custom action and dont know if there is PowerShell
Community Extensions is installed already on the system...
very good, thanks
| Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Powershell V2 Console Files | Chad | PowerShell | 2 | 20 Sep 2009 |
| PS Console when invoking a script from VB.NET | Dan | PowerShell | 5 | 30 Jul 2007 |
| how to call win32 console app or bat file from ps script | rowein | PowerShell | 2 | 03 May 2007 |
| Hide console and capture output from script? | Brian Vallelunga | PowerShell | 4 | 03 Apr 2007 |
| RC2 - Bug when selecting in the PowerShell console? | Andrew Watt [MVP] | PowerShell | 4 | 30 Sep 2006 |