Contact

admin

About Me · Send mail to the author(s) E-mail · Twitter

At GROSSWEBER we practice what we preach. We offer trainings for modern software technologies like Behavior Driven Development, Clean Code and Git. Our staff is fluent in a variety of languages, including English.

Feed Icon

Tags

Open Source Projects

Archives

Blogs of friends

Now playing [?]

Error retrieving information from external service.
Audioscrobbler/Last.fm

ClustrMap

Running Scripts Invisible

Posted in Tools and Software at Thursday, March 23, 2006 6:24 PM W. Europe Standard Time

I wrote a little helper program that runs scripts invisible instead of showing the sometimes nagging black-and-gray CLI window.Command Line

The first parameter passed to the tool is the script file to run. The remaining parameters are passed to the script as its parameters. Pretty easy.

RunInvisible.exe Script [Parameter1] [Parameter2] ...

You may check for errorlevels in your own scripts if something goes wrong.

Errorlevel Description
-1 General assertion error, command line may be too long.
0 Operation successful.
1 No arguments passed. That is, the script parameter is missing.
2 Memory allocation failure.
3 An error occured while starting the script using CreateProcess.

DownloadDownload the executable or the source code.

Now playing: The Cardigans - Super Extra Gravity - Little black cloud

All comments require the approval of the site owner before being displayed.
(will show your gravatar icon)
 
[Captcha]Enter the code shown (prevents robots):

Live Comment Preview