Question:
What is the point in making batch files?
audiorich
2008-06-07 11:01:22 UTC
why do people make batch files?
Nine answers:
SharpGuy
2008-06-07 14:20:54 UTC
Heres a good example. I record songs off the internet in .wav format. I then use a program that converts them all into .mp3.



After that, I have to goto My Computer and highlight all the wav files and then delete them.



I then use another program to edit the MP3 ID tag.



So instead of doing all this clicking to do those 3 tasks, I have a batch file:



c:\progra~1\alivem~1\mp3wav~1\mp3wavconverter.exe *.wav /mp3

del *.wav

c:\progra~1\tagren~1\tagrename.exe



The first line opens up my mp3 converter program and immediately starts to encode all my .wavs to .mp3.

The second line tells it to del all files ending with .wav

The 3rd line opens up another program for me to edit the MP3 tags.



So with one simple click of my .bat file, I have done 3 tasks in 5 seconds. If I was to do this manually, it would take 30-45 seconds.
question asker
2008-06-07 18:49:35 UTC
People are wary of batch files in emails for very good reason. You should never run a batch file that someone emails to you -- unless you know and trust the person who sent it. Or if you can open the batch file's source code, before running it, and understand the code to know it is safe. As someone else said windows will not allow batch files to be received by email.



Taking into account the above provisos, batch files can be very useful. Especially they can be used to run command line computer programs e.g. java 'jar' files. They are also useful for moving around large numbers of files or moving files that have the same file type.



An example.. say I have a folder of photos. Some of the photos have been resized and include the letters 'rs' (for resized) in the filename. I want to create a batch file to move all of the resized photos into a folder with the name 'resized'.

The batch file goes into the folder containing the photos you want moved. It looks like this:



mkdir resized

move *rs* resized



The first line creates a new folder inside the folder containing the photos. It names it 'resized'. The second line moves all files containing the letters 'rs' into this new folder. The asterisks are wild-cards that can be any letter.



Other uses for batch files would be to back up files onto another disk or rename files. The list goes on!
rknoblock
2008-06-07 12:03:49 UTC
Batch files can simplify many tasks by letting you store the commands that you would otherwise have to enter at the command prompt each time you wanted to do them. Prior to the widespread use of Windows-based applications, many software packages were installed on computers using batch files provided on the media, typically diskette. The install.bat or setup.bat file would create a new directory on the C: drive where the software would be installed and then copy files to that directory. The benefits of such a process are two-fold. Knowledgeable computer users are spared the need to type a string of commands and computer novices avoid the confusion of typing stuff they don't understand and may find intimidating. Other operating systems have features similar to batch files. For instance, Unix and Linux can run scripts files.
2008-06-07 11:33:22 UTC
they can be used for many things, such as opening files in a certain location by just double-clicking the batch instead of looking for the file. They can also be used as viruses in email, but there still is a way to get them pass the security blocking files with the extension ".bat". They also could be used to make funny stuff like make the computer shutdown.....

Yeah...

I DO NOT SUPPORT VIRUSES BY THE WAY!!!

I WAS JUST SAYING....
Mr Wan King
2008-06-07 11:28:24 UTC
people create viruses with them for emails, but windows dont allow batch files in emails, their looked at as a virus
2014-08-06 23:45:34 UTC
Hi there,

If you are looking for a good program to open zipped files (compressed files) the best solution is WinRar.

Here I got Winrar for free http://bitly.com/1p3Q2a7

I hope it helps
wesch
2016-10-21 08:28:55 UTC
attempt this.... Make 2 batch archives. Then make each and each and every open one yet another so as that folk ought to shop exiting them! Yay! as an celebration: initiate filenumberone.bat and the different report initiate filenumbertwo.bat
Alldigitalbay D
2008-06-07 11:46:44 UTC
The Internet is evolving, new technologies are introduced and new ideas are continuously immerging. Programmes involve continuous research and development to sustain their competitive advantage and continue delivering value to the user.



Without R&D programmes can soon become outcompeted and obsolete. Patches will update programmes and add value. With patches the user is satisfied with the new features and remains a loyal customer. Features can be more security, speed, flexibility, etc.
Ian G
2008-06-07 11:07:29 UTC
To power command line programs without having to manually type in all the commands and switches.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...