There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen boot computer connection crash css dell display driver drivers email error ethernet excel explorer firefox firefox 3 freeze game hard drive internet internet explorer itunes laptop linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem router slow software sound trojan usb video virus vista windows windows xp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
Solved: HowTo run a batch file without it showing


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
kimsland's Avatar
Senior Member with 1,128 posts.
 
Join Date: Oct 2007
Experience: Helped for a while !!!
28-Oct-2007, 06:18 PM #1
Solved: HowTo run a batch file without it showing
HOWTO RUN A BATCH FILE IN WINDOWS WITHOUT IT SHOWING:
-----------------------------------------------------


MINIMIZED:

Start Run the following line, Replace the "MySubFolder" with your batch file path

cmd /c "start /min C:\MySubfolder\MyBatchFile.bat"

-----------------------------------------------------

INVISIBLE:

Save the following line as invisible.vbs (use Notepad Save As... All Files)

CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

Confirm you have Scripting installed (By typing wscript in the Start Run dialog)

Start Run the following line, Replace the "MySubFolder" with your file paths

wscript "C:\MySubfolder\invisible.vbs" "C:\MySubfolder\MyBatchFile.bat"

-----------------------------------------------------

RUNNING FROM CD: (using Environment Variables)

"C:\Windows" can be replaced with "%windir%" (if your Windows path is unknown)
"C:\MySubfolder" can be replaced with "%cdrom%" (if your batch file is on CD)
"wscript" can be given the full path string - %windir%\system32\wscript.exe
"cmd" can be given the full path string - %windir%\system32\cmd.exe

CD EXAMPLES:

Note:
"MySubfolder" denotes your subfolder name
"wscript.exe" exists in %windir%\system32
"%CDROM%" you must be running this from CD

Minimized:

%windir%\system32\cmd.exe /c "start /min %CDROM%\MySubfolder\MyBatchFile.bat"

Invisible:

%windir%\system32\wscript.exe "%CDROM%\MySubfolder\invisible.vbs" "%CDROM%\MySubfolder\MyBatchFile.bat"

-----------------------------------------------------

Using Autoplay Menu Builder Program:

Minimize:

Program:
%SysDir%\cmd.exe
Parameter:
/c "start /min %cdrom%\MySubfolder\MyBatchFile.bat"

Invisible:

Program:
%SysDir%\wscript.exe
Parameter:
"%CDROM%\MySubfolder\invisible.vbs" "%CDROM%\MySubfolder\MyBatchFile.bat"

-----------------------------------------------------

Thanks To:

This information has taken me hours (days!) of research
With the help of ChuckE at http://forums.techguy.org
and Eric at http://www.ericphelps.com/scripting

-----------------------------------------------------

You can find me floating around most good tech forums
(I only wish I'd spent my time on Linux !

Kim
Squashman's Avatar
Distinguished Member with 12,696 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
05-Nov-2007, 08:11 PM #2
We have talked about this subject several times on the forums.
You can also use a nice program called Quiet from Joeware.
http://www.joeware.net/freetools/tools/quiet/index.htm
kimsland's Avatar
Senior Member with 1,128 posts.
 
Join Date: Oct 2007
Experience: Helped for a while !!!
05-Nov-2007, 09:09 PM #3
I had a good look at it.

I was optimistic, I thought this would replace my command script, so my first thoughts were with good intentions.

But...

After using it I found that there is a very quick popup message (as stated by author) :
"Quiet V01.01.00cpp Joe Richards (joe@joeware.net) April 2002"
Which is rather annoying

Plus the sequence that it is using is exactly the same as the VBS file (provided) above, without the popup !

Therefore users are better off Not using "Quiet"
And staying with the above info.

If anyone would like to reply with their thoughts, they are most welcome.

Kim
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:15 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.