Batch .bat Files - not sure which subforum this would go in

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > Others

Batch .bat Files - not sure which subforum this would go in

AlternativeNick
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,
  • What language are .bat files written in?
  • Is there a way to run them without the black box popping up?
  • what are some of the things that you can do with them? i know about ftp stuff, but i havent done much else :S

Reply

shadowx
others can correct me if im wrong but i belie .bat files (Batch files) are just a collection of commands that run in DOS on windows so technically theyre not written in any programing language as they arent a program as such just commands for another program.

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!

 

 

 


Reply

brandon10092
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.

Reply

Galahad
.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...

Reply

beeseven
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.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. .bat batch files commands timer - 1.16 hr back. (1)
  2. execute dos batch files every hour - 4.42 hr back. (1)
  3. how to find mp3 files on the network using batch files - 6.49 hr back. (1)
  4. telnet in batch files - 7.64 hr back. (1)
  5. batch.bat program - 15.40 hr back. (1)
  6. usefull batch files - 19.61 hr back. (1)
  7. writing .bat files telnet - 46.02 hr back. (1)
  8. how to write to cd using dos command .bat - 52.70 hr back. (1)
  9. fun things to do with batch files - 73.26 hr back. (1)
  10. "net send" bat command.com - 90.17 hr back. (1)
  11. batch.bat - 26.06 hr back. (3)
  12. dos script telnet commands - 111.41 hr back. (1)
  13. telnet commands using .bat files - 117.01 hr back. (1)
  14. batch .bat - 29.21 hr back. (2)
Similar Topics

Keywords : batch, bat, files, subforum

  1. Search For Video Files And Display Them
    Using a batch file in windows (0)
  2. Timer Command In Dos
    batch file help (4)
    I wish to execute a command at regular intervals .....precisely every half an hour....Is there any
    Dos command which can do it I havent found any so far...and i've heard there are no timer
    commands in DOS. So how should i go about it...i want the batch file to be executed at regular
    intervals....any external process or application that will invoke it?????....
  3. Mp3 Player Sync Batch Job
    (1)
    well at the moment ive got DEL "k:\music\*.mp3" CD c:\music copy *.mp3
    "K:\Music" EXIT C:\ is my computer ( /tongue.gif" style="vertical-align:middle"
    emoid=":P" border="0" alt="tongue.gif" />) and K:\ is my mp3 player. the reason im deleting
    everything first is because if i dont like a song i'll delete it on my computer and i want my
    mp3 not to have it either. im too lazy to go through my mp3 player and find all the bad songs.
    Anyway, this is taking too long so i would need something that would check every song on the mp3
    player to s....
  4. Programming Batch Job
    (6)
    I want to know how to make a batch file that will run a program at a certain time of day, like a
    scheduled thing, but i want it in a batch.. lol.. Easy enough? If you give me permission i can edit
    it to the program i want Lol.. just put it in code tags! Thanks! Topic title must be
    specific. Modified. ....

    1. Looking for batch, bat, files, subforum

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for batch, bat, files, subforum

*MORE FROM TRAP17.COM*
advertisement



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