tags:

views:

306

answers:

4

on start up i have a bat file run routine things for me

however, the black console pops up and stays open until everything is finished....

anyway to hide it and run it in background ? so it shouldn't appear minimized or system tray.

+1  A: 

You can't really do that but if you are using the scheduler to run the batch file you can select "don't interact with desktop" when creating the job.

tr4656
A: 

Try renaming your file to .cmd instead of .bat.

Or, if you're executing a .exe try:

start "" "C:\Program Files\SomeProg\someprog.exe"
Vivin Paliath
A: 

Create a shortcut to the file. On the new shortcut: Right click -> Properties. Go to the Shortcut tab, and choose "Run: Minimized." (This is assuming you're on WinXP).

jamieb
I was going to suggest the same, but then noticed that the original poster did not want it to "appear minimized or [in] system tray".
Alek Davis
A: 

I once had a little program which could hide windows based on their title. So my startup batch first set a unique title with title and then called the other program to hide the window with said title. Worked fine but involves a little programming.

If you don't want to go that way, then you should use the Task Scheduler as tr4656 noted.

Joey