|
Answer» how do you make a batch file that after it opens it will carry out the commands invisibly? Thank youBest way that I've seen is to create a shortcut to the batch file and have the shortcut run MINIMIZED. It will open a command window, but it will run minimized in the task bar. If it runs quickly, it's practically invisible.Do you want to hide the output of the batch file, or hide the whole window? Most commands allow you to redirect the output using the greater than SYMBOL ">". If your batch file is small enough just redirect everything to NUL. Otherwise you COULD call your batch file with another batch file redirecting the output to NUL.
Example 1: You have a batch file called script.bat. Let's say script.bat runs the IPCONFIG command but you want to hide the output. You could change the IPCONFIG line to: Code: [Select]ipconfig >NUL Example 2: You have a batch file called script.bat (same as the example above). But if you don't want to edit script.bat or if it is really long and you don't want to redirect each line to NUL, then create a new batch file called invis.bat (or whatever you want to call it) that contains: Code: [Select]@echo off call script.bat >NULI can SEE this sort of informating getting into the wrong hands...Quote from: CBMatt on May 10, 2007, 08:11:51 PM I can see this sort of informating getting into the wrong hands...
Same...this information can be used for.....odd purposes...Thank you
|