Link to home
Start Free TrialLog in
Avatar of chewy747
chewy747

asked on

Hide Batch File in Windows XP

I am looking to run a batch file in windows XP.  I would like the cmd screen to stay hidden.  Any ideas?
Avatar of Shane Russell
Shane Russell
Flag of United Kingdom of Great Britain and Northern Ireland image

Avatar of wayside
wayside

How are you running the batch file? Double-clicking in explorer, from another script, from inside a program, etc?

The answer varies depending on what you are doing.
Run in background, or taskbar or systray(small). Better imo to run under another product such as soon or at cammond, and run it in non-interactive mode (the default). If you haven't the admin privileges, then tough bananas, you cannot hide.
ASKER CERTIFIED SOLUTION
Avatar of paraghs
paraghs
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chewy747

ASKER

it is run from another program that I have no control over.  I have full control over the batch files only.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
http://www.kixtart.org/

128 page manual, (compare that to MS offers for batch), from the current Word version:

KiXtart and the console
KiXtart is provided in two ‘flavors’: the standard console-based version and a Windows version. The Windows version will only display a console if and when any output is sent to the screen. If desired, this behavior can be overridden using the /I (Invisible) commandline option.

Optionally, on Windows NT or higher, you can also specify the /B option with the START command, to prevent the creation of an additional window.
I think one of the two methods should work for you :

1. kneH suggested Hiderun, but not used directly.
Suppose the application calls your batch file, which is named chewy1.bat, then rename it to chewy2.bat, and create a new file chewy1.bat with only following contents :
"path to hiderun"\hiderun "path to chewy2.bat"\chewy2.bat

2. Second option is to use a program called WatchCat (http://www.pcworld.com/downloads/countit.asp?fid=7343&fileidx=1)
"Keep your desktop clutter free by hiding running applications. Hidden apps stay off your desktop, taskbar, and Alt-Tab list, and are accessed via an icon in system tray. This utility includes hot-key support, scheduling features, and a show-all/hide-all option"
Set WatchCat to hide the Window titled chewy1.bat with 0 time lag.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I feel this question has some good comments to solve the problem at hand, including mine, kneh's & SunBow's.
A split would be best.
FYI: I had exactly the same issue, and I used the solution of paraghs, which worked just peachy.  

I used it to give my young daughter an email "account" that filters through mine; the filter directs it to a folder, and the batch script copies the folder to her inbox every 10 minutes.  Works great with Thunderbird.  The only problem was that I didn't realize I had to say ".lnk" in the services setup.  Duh.