answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How can you open a separate program with Batch files and then close that program with Batch?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Computer Science

What is a batch code?

A batch code is basically a mini program, that does something in Comman Prompt. You can write a very simple batch file, or a extensive one that can do a lot of stuff. If you know anything about "Command Prompt", then you most likely know simple commands such as "Start" and "chkdsk". A batch file will let you run a lot of commands really fast instead of retyping them. People use batch files to take ownership of a lot of files, to do routine maintainence on their computer and to hack.


What is the name given to copies of data or program files?

If they are being kept in case there is a chance of losing the originals, they are called backups. Otherwise they can just be referred to as copies.


Where DLL files stores?

Dll files are stored every dude. Did a program say that a dll failed? or a dll has an error? or cant be found? go in the My Computer and go in your hard drive. programs and files. go to the broke down program. there is were the dll would MOST likely be. But i would download a pach for the program. eather that, re download and reinstall the program.


If I changed my RAM would it affect my files?

No, changing your RAM will not affect your files. Your files are stored on your hard drive, which is a separate piece of hardware from the RAM. Once you shut down your system, your files are safely stored on the hard drive, so adding new RAM or replacing old RAM will have no effect on your files.


I have an external hardrive and i wanted to put all my files and programs on to it will i be able to just copy over the program files into the hardrive an run the programs from there?

Uh-huh.

Related questions

Is there a way to close one program automatically anytime a certain other program is launched?

Yes, using a batch file like this one: @echo off killtask /IM programyouwanttoclose.exe /F C:\Program Files\Programyouwannaopen\programyouwannaopen.exe Then you run the program using this batch file instead of the usual link / exe Regards, Andrea Fattori Yes, using a batch file like this one: @echo off killtask /IM programyouwanttoclose.exe /F C:\Program Files\Programyouwannaopen\programyouwannaopen.exe Then you run the program using this batch file instead of the usual link / exe Regards, Andrea Fattori Yes, using a batch file like this one: @echo off killtask /IM programyouwanttoclose.exe /F C:\Program Files\Programyouwannaopen\programyouwannaopen.exe Then you run the program using this batch file instead of the usual link / exe Regards, Andrea Fattori


What program opens bat files?

Batch files(.bat) open in command prompt(cmd). They can be edited in notepad or an equivalent text editor.


In what folder to you install a program?

That would be the "Program Files" folder. It is usually on C: drive. With a 64 bit system you will have a "Program Files" folder, and a "(x86) Program files" folder. The program itself will usually be in a separate folder in the "Program file" folder. It will either have the name of the program or the name of the program Company. If the folder is named after the company then the program will be in a separate folder inside the company folder.


Is there a hex editor that can make the same edit on multiple files via batch?

Cnet.com has a program called "Batch Hex Editor", check it out. Hope that is what you are looking for. It is free to try


What is batch converter?

A batch converter is a tool that converts several files simultaneously to one format. These can be files or any data.


What are batch files?

Batch files are text files containing a series of commands to execute set of commands or run programs in a sequence. Batch files are like a script which, instead of entering and running individual commands are useful in saving time and executing programs even when computer user is not present. Batch files are useful for repetitive tasks (you do not need to enter all the commands every time you repeat the task). MS-DOS and Windows batch files end with .bat extension.


What are batch files used for?

batch files are used to run a series of commands at once. people who work on computers daily and have a series of files or programs to start and command to run often create a batch file to do it automatically and save time.


What is a batch code?

A batch code is basically a mini program, that does something in Comman Prompt. You can write a very simple batch file, or a extensive one that can do a lot of stuff. If you know anything about "Command Prompt", then you most likely know simple commands such as "Start" and "chkdsk". A batch file will let you run a lot of commands really fast instead of retyping them. People use batch files to take ownership of a lot of files, to do routine maintainence on their computer and to hack.


What is batch coding?

A batch code is basically a mini program, that does something in Comman Prompt. You can write a very simple batch file, or a extensive one that can do a lot of stuff. If you know anything about "Command Prompt", then you most likely know simple commands such as "Start" and "chkdsk". A batch file will let you run a lot of commands really fast instead of retyping them. People use batch files to take ownership of a lot of files, to do routine maintainence on their computer and to hack.


When making a batch file how can one disable the close box?

If you are talking about the little red "X" mark on the batch window and you want to disable it so someone cannot close it, then there is no possible way to do that. The batch file scripts are very simple and cannot go as far as to disable a close button. Anyway, the person can easily exit the batch with the Ctrl + C combination. Plus, if that feature is allowed in batch files, you can run a lot of nasty stuff in there as the user cannot stop it, so that's not a option for your virus.


Are Linux script files the same as Windows dos batch files?

More or less.


Why won't batch files open on my computer?

If you are making the files yourself then I would make sure that you are saving it with a .bat extension. Otherwise be sure that your computer will automatically detect the format of extensions and use the appropriate program to open them!