home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Technical Support
Ask a Tech Support Question (free)!

running a .bat in win98... how do I?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 1862
Discussions: 200,923, Posts: 2,379,098, Members: 246,290
Old November 21st, 2002, 03:50 AM   Digg it!   #1 (permalink)
Senior Member
 
Join Date: Oct 2001
Posts: 881
Send a message via AIM to zskillz
running a .bat in win98... how do I?

get the ms-dos window to close after I have run the bat?


it's reallly short



@echo off
net use blahblahblha blahblah
(here is where I want a command to close the window)




thanks
-Z
zskillz is offline   Reply With Quote
Old November 21st, 2002, 04:06 AM     #2 (permalink)
nuisance since 1968
 
OuTpaTienT's Avatar
 
Join Date: Oct 2001
Location: ɐqɟs
Posts: 10,457
I used to know this ..... darn...I forget.

I think you just make the last line read "exit" (w/o the quotes).
__________________
OIC 0utpatient.com
OuTpaTienT is offline   Reply With Quote
Old November 21st, 2002, 04:21 AM     #3 (permalink)
Retired mostly.
 
Join Date: Oct 2001
Location: Finland
Posts: 5,144
Run the bat, press the little 'msdos' icon on the upper left corner when it finished. Select close automatically or something similar from the properties and it should not stay on top anymore.

I made that change quite a few times back when our virus scanner was updated via a bat file upon logon.
-M
muno is offline   Reply With Quote
Old November 21st, 2002, 03:28 PM     #4 (permalink)
Senior Member
 
Join Date: Oct 2001
Posts: 881
Send a message via AIM to zskillz
thanks muno... strange though, it creates a little msdos file to store that single setting in it. wierd

-Z
zskillz is offline   Reply With Quote
Old November 21st, 2002, 04:32 PM     #5 (permalink)
Member
 
Join Date: Sep 2002
Location: Cumberland MD
Posts: 154
The comand to exit a DOS box is "exit" (without the quotes). It works from the command line and it works in a script.
herura is offline   Reply With Quote
Old November 21st, 2002, 11:57 PM     #6 (permalink)
Senior Member
 
Join Date: Oct 2001
Posts: 881
Send a message via AIM to zskillz
believe me.. i tried it in the .bat file...

no luck and i don't know why

-Z
zskillz is offline   Reply With Quote
Old November 22nd, 2002, 01:33 PM     #7 (permalink)
Senior Member
 
Join Date: Oct 2001
Posts: 881
Send a message via AIM to zskillz
hehe.. but it still requires 2 files.... i'm just surprised that I can't integrate the close command directly into the bat file itself

-Z
zskillz is offline   Reply With Quote
Old November 22nd, 2002, 02:44 PM     #8 (permalink)
nuisance since 1968
 
OuTpaTienT's Avatar
 
Join Date: Oct 2001
Location: ɐqɟs
Posts: 10,457
Putting 'exit' as the last line of the batch should indeed work. If it doesn't try 'cls' right before the 'exit'. So your last two lines of the batch file should be:

cls
exit


Make sure you have a carriage return after exit.

Last edited by OuTpaTienT : November 22nd, 2002 at 02:46 PM.
OuTpaTienT is offline   Reply With Quote
Old November 22nd, 2002, 02:58 PM     #9 (permalink)
Member
 
Crummy's Avatar
 
Join Date: Feb 2002
Location: Kirkland, WA USA
Posts: 107
If you go into the properties of the bat file (right click choose properties) and choose close on exit. That option is in one of the tabs can't remember which. This should work for you.

**EDIT**
Sorry Steve didn't mean to repeat, should've read all the posts first.
Crummy is offline   Reply With Quote
Old November 22nd, 2002, 03:06 PM     #10 (permalink)
Senior Member
 
J-Excel's Avatar
 
Join Date: Aug 2002
Location: Kzoo, MI
Posts: 883
Having "exit" at the end works fine in Win2k. I don't have Win98 installed to try it.
J-Excel is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (2856)
Obama the Muslim (13)
Why is Khalid Sheikh Mohammed even .. (9)
Is the PSU I received dead? (10)
windows vista security holes (8)
Foreign voltage (10)
Print spooler problem (13)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (9)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
New Computer wont recognize XP disc (7)
Ideal cheap graph card for PC-Gamin.. (15)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
Fire in DVD (0)
radeon x850xt platinum & shader 3 (2)
The NTDVM CPU has encountered an ille.. (24)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
windows vista security holes (8)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)
Install XP pro and a Vista laptop ?? (9)
EVGA 9800 gtx help with finding a goo.. (8)
Modern Warfare For the PC (32)
Problem with speed step/turbo boost? (1)
Modern Warfare 2: Who Bought It? (61)
SIS 740 and Widescreen (8)
Baffling Problem with my CPU/MoBo's. .. (0)
HIS HD5770 graphic card question (15)
Best file format to play on Windows H.. (0)


All times are GMT -4. The time now is 10:05 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28