answersLogoWhite

0


Best Answer

A batch file will close when it reaches the last line of code or an error.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why does this batch file closes whenever you type in a command that has a symbol or space in it how do you fix this?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you open a separate program with Batch files and then close that program with Batch?

Batch file that opens a program waits 5 seconds then closes that program. For some reason I cannot get this batch to perform the open portion, wait, then the close portion in .... startup batch file hangs up on second command.


How does batch file work?

batch files are used to make long tasks shorter. for example, If I wanted to change the file extension of every file in the folder EXAMPLEFOLDER from .txt to .doc, I could make a batch file that did that instantly, rather than going into the properties of every file and changing the extension manually


How do you answer Y in a batch file automatically?

Each command has its own way of telling it to bypass confirmation. Enter <command> /? for a description of the switches you can use with that command.


Why does your batch file close every time?

If a batch file closes every time, it may have a problem. It might close after a certain period of time, or if it has remains inactive for a certain period of time.


What does the file extension mean at the end of a file name?

It is a batch command file.


How do you create ipconfig batch file?

Here is an example of a batch file that carries out the command ipconfig. @echo off ipconfig /all pause exit


How do you make a batch file without it closing immediately when you start it or use a command?

YES


What does the file extension .bat mean at the end of a file name?

It is a batch command file.


How do I check if a registry value exist or not from a DOS batch file?

Get the Registry entry using regedit command. use the command from command prompt or copy that in a batch file and execute. Use errorlevel command to verify. hope this helps!! @echo off reg query RootKeyName\Path\To\Key\To\Query /v KeyName echo Does not Exist!!!!


What is the full form of BAT?

if by bat you made the .bat file extension then the full form of bat is batch. it is a file that is created with batch script, the windows command line.


Windows XP includes a command-line tool called for batch processing of encryption?

Secedit


In command prompt what does the if switch do?

There is not switch called "if". We generally use "if" statement in batch programming in DOS.