Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Batch .bat Files, not sure which subforum this would go in
AlternativeNick
post Aug 6 2006, 04:13 PM
Post #1


Super Member
*********

Group: Members
Posts: 210
Joined: 7-June 06
Member No.: 24,817



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
Go to the top of the page
 
+Quote Post
shadowx
post Aug 6 2006, 04:30 PM
Post #2


A clever man learns from his own mistakes, a WISE man learns from those of OTHERS
*********

Group: [HOSTED]
Posts: 894
Joined: 12-April 06
From: Essex, UK
Member No.: 21,719



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!
Go to the top of the page
 
+Quote Post
brandon10092
post Aug 7 2006, 08:47 PM
Post #3


Premium Member
********

Group: [HOSTED]
Posts: 152
Joined: 8-July 06
Member No.: 26,287



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.

This post has been edited by BuffaloHELP: Aug 7 2006, 08:55 PM
Go to the top of the page
 
+Quote Post
Galahad
post Aug 9 2006, 11:29 AM
Post #4


Neurotical Squirrel
*********

Group: [HOSTED]
Posts: 590
Joined: 4-November 04
From: Novi Sad, Vojvodina
Member No.: 2,127



.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...
Go to the top of the page
 
+Quote Post
beeseven
post Aug 18 2006, 12:47 AM
Post #5


Privileged Member
*********

Group: Members
Posts: 629
Joined: 26-February 05
Member No.: 3,995



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.

This post has been edited by beeseven: Aug 18 2006, 12:47 AM
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Timer Command In Dos(4)
  2. Search For Video Files And Display Them(0)


 



- Lo-Fi Version Time is now: 21st August 2008 - 01:31 AM