Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - PSScriptRunner - run a PS script with no window flashing on screen

Reply
 
Old 10-17-2006   #1 (permalink)
Andrew Webb


 
 

PSScriptRunner - run a PS script with no window flashing on screen


www.databatcher.com/freestuff/PSScriptRunner.zip

From the Readme:-

PSScriptRunner

This ultra-simple Windows GUI application will run PowerShell.exe in such a
way that the PowerShell window is not shown on screen. Although a GUI
application, no window is created. This application is of use when you want
to run a PowerShell script without any interactivity, and without any window
flashing up on screen briefly (which can be annoying).

The app launches PowerShell in a separate process and then quits. Having a
windowless GUI application is actually better than creating a console
application, which will currently always cause a Cmd.exe window to be created.

The arguments on the command line of this application are based straight
through to PowerShell.exe.

Requires Windows PowerShell RC2 or later. Also requires .NET 2.0.

Please look at Program.cs before running, and check that you are happy with
what this application does.

The actual executable file is called "PSScriptRunner.exe", and it's in the
\bin\Release subfolder (ignore "PSScriptRunner.vshost.exe").

BTW: if the app is unable to run PowerShell for any reason, it will append
an error message to "PowerShellScriptLauncherNoWindow_Errors.txt" in your
My Documents folder.

Use at your own peril. No warranties made or implied. Your mileage may vary.
and so on...

Enjoy!

Andrew Webb
Micro Inspirations Ltd.
http://www.databatcher.com



My System SpecsSystem Spec
Old 10-17-2006   #2 (permalink)
Andrew Webb


 
 

RE: PSScriptRunner - run a PS script with no window flashing on screen

My System SpecsSystem Spec
Old 04-02-2008   #3 (permalink)


Vista Enterprise 32bit
 
 

Re: PSScriptRunner - run a PS script with no window flashing on screen

I tried clicking on your link, but got a generic site hosting page... would you (or anyone else) happen to have this util? Please let me know where I can get it.

Thanks,
RMSe17
My System SpecsSystem Spec
Old 04-02-2008   #4 (permalink)
Marco Shaw [MVP]


 
 

Re: PSScriptRunner - run a PS script with no window flashing on screen

RMSe17 wrote:
Quote:

> I tried clicking on your link, but got a generic site hosting page...
> would you (or anyone else) happen to have this util? Please let me know
> where I can get it.
>
> Thanks,
> RMSe17
>
>
Email me directly (remove "_NO_SPAM_") from my address on this message.

I still have it saved on my computer.

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
PING: MVPs — flashing window 'system32/com' oddball problem Vista General
Flashing Window panes is a pain Vista General
Posting reply I have missing window flashing in Vista Vista installation & setup
Please Help! - Annoying Flashing Window Won't Stop Vista performance & maintenance
Flashing screen Vista hardware & devices


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46