| | sorry, im not really sure where this would go, as im just starting to hear alot about them and dont know what language theyre in. i had just a few questions tho,
|
|
|
And i dont think there is a way of stopping the black box coming up becuase the black box is MS-DOS which is what takes the instructions you write into the batch file and does whatever they tell it to do. As for what it can do i dont think its very much, its usually used for recovering a computer if everything goes wrong and you can use DOS and batch files to try and fix things because they dont need windows to load to work also i use them to shutdown faster sometimes just one line of commands can shutdown my computer a lot quicker than the usual way. they can be used for things like telnet and other DOS applications and for checking network configurations and things like that but overall batch files are only really usefull for technicians and techie minded computer users rather than for a general home user who wants to do office work or play games, they are usefull for things ive already mentioned though. I think you can find a list of the uses and commands by searching for MS-DOS commands in google But like i said i might be wrong so others please correct me but i think im right!
Batch files are written as simple "phrases" that your computer recognizes as commands when you save your file as .bat. For instance, open up Notepad. Then type in command.com, (without the comma) which is the phrase that tells the computer to open up command prompt. Then go to File-Save As-then save as whatever you want, and at the end, type .bat, and make sure where it says Save As Type you select All Files. Then open the file up and it will open up Command Prompt. If you do some research online you can find and memorize a simple list of commands to put in a batch file and pretty soon instead of opening up Command Prompt and trying to configure your IP address, you can simply write a batch file that opens it up and it does it for you.
CODE @echo off :A Cls echo MESSENGER set /p n=User: set /p m=Message: net send %n% %m% Pause Goto A If you save that in a batch file, you've just created an instant messenger that runs through Command Prompt, and all you need is your friend's IP address.
.BAT (Batch files) can be looked upon as a shell scipt, because, that's wtah they actually are... Theya re plain text file, with simple structure, and a list of commands that operating system has to execute... These commands are not really commands, such as found in programming languages, but rather, OS commands, and program names... So, for example, you could set some temporary environment variable, and then execute some game, and after that game exits, clear that variable...
Batch files could perform simple branching, variable comparisons, text input, OS command execution, and program execution... Try to obtain manual or help files for MS-DOS 6.22... You can find more info there, on batch file specific commands... .BAT files were uses while MS-DOS existed, and were useful, if you had to do same operations constantly, to avoid typing the same sequence of commands over and over again... Since MS-DOS no longer exists (it's only emulated in WindowsXP), and due to graphical operating system, .BAT files lost some of their use... They still do the same thing, they did years ago, but are obsolete now... Think of batch files as a form of Unix shell scripts...
At one point I was looking up things you can do with them and different commands you could use, and I found this: http://www.computerhope.com/msdos.htm. It's a big list of all the DOS/command prompt commands, what they do, and how to use them.
Recent Queries:-
Keywords : batch, bat, files, subforum
batch file help (4) I wish to execute a command at regular intervals .....precisely every half an hour....Is there any (1) well at the moment ive got DEL "k:\music\*.mp3" CD c:\music copy *.mp3 (6) I want to know how to make a batch file that will run a program at a certain time of day, like a Looking for batch, bat, files, subforum
|
|
![]() Batch .bat Files - not sure which subforum this would go in |
| ADD REPLY / Got an Opinion! | a humble request :-) | RAPID SEARCH! | Free Hosting | [X] |
|
Express your Opinions, Thoughts or Contribute your information that might help someone here. Ask your Doubts & Queries to get answers.. "Together, We enlight each other!" |
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP. | 500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE |
|