Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

batch hide

Status
Not open for further replies.

sparc20

Programmer
Mar 13, 2002
56
GB
im wrote a batch script, but id like to have this script hidden from the screen when is executed. anyone knows how to ?
 
. if it is just "ugly", use the Start /Min batch.bat form of starting the application.

. if it is a security concern, convert to a script and encode the script

There are freeware utilities that in many cases can convert .bat to .exe files that you should Google.
 
its not a security concern no, i basically wanted it hidden from the screen and the windows taskbar...

could you explain me more about start/min ?
 
Let say you have an existing .bat file called start.bat
You add to the logon script or desktop shortcut a reference to a new .bat called start_start.bat"

@echo off
Start /MIN drivepath:\start.bat

The application runs without appearing on the desktop, only the taskbar briefly.

See for the START command parameters:
 
i tried it but its not what i really want...you see this bacth process takes a while to execute...and so it does not remain briefly on the taskbar. i want the whole thing completely invinsible...
 
Would it be possible to have this batch job run, say at shutdown of the computer?

Or during an idle period, when people when to lunch or something like that?

And/or is the issue for you not the taskbar appearance, but system resources?

Please advise.
 
ok , time to get to specific

Im developing an intranet application.

On the same PC i will a Tomcat Server and an the web application hosted on tomcat. This application has a link to a local batch file. So within the website there is this link which someone clicks and starts the batch file. Although this works prefectly fine, i would like this batchfile to start without the user knowing. That means not poping up a window, and not displaying anything on taskbar

Am i making any sense ?

thanx
 
Then time for me to be specific.

1. Under a Web page you have a great deal of control over the virtual windows that appears;

2. You should consider adapting the batch or script to a service, and then it would be transparent.

See, for example, one utility that may help:
There are native Resource Kit tools, now free, that would let you do this by hand, but experiment with the freeware for one use utility above.
 
Hello sparc20,

A solution is to make the link, pointing to a batch, points to a launching bat, say a.bat:
Code:
::a.bat---pointed to by the link
cscript b.vbs //b //nologo
The a.bat launch b.vbs which in turn launch c.bat (your work-horse, original batch file).
Code:
'b.vbs
createobject("wscript.shell").run "%comspec% /c c.bat",0,false
Hence the chain is a.bat-->b.vbs-->c.bat(now hidden).
The a.bat inevitably produces a flickering on the screen with dos-box appeared & immediately going off. The long process in c.bat will be hidden. (Adding path if necessary).

Instead, you can make the link directly to b.vbs producing the same result and shorten one launching process, but the saving is only academic.

regards - tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top