If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

--------------------------------------------------------------------------------
Any file with the extension of .bat
These file are use to perform number of task one by one,well this is the original idea,infact it was when multitasking was not posible or expensive.
Old days systems are not well capable to do things as faster than today, you may be sitting in fast processor based computer but those days fast means just a little faster than your sci.caluator.
Whenever they want to do things they usally create batch file in which they may place commands to perform the task by computer.like u may love to do this
1dir
2dir/w
3dir/s
see what will happen,if ur system has lots of file than u may impress your girlfriend to inform her that you computer has a virus and u love to see that.
Well back to the topic those guys commands big jobs once and try to do other small or imp. work.like they may love to created file such as:
del *.tmp
del *.bak
del *.obj
del *.txt
copy *.data file to tapedrive
del *.data
this second last command will take log time(more than hrs if file is long,usally yes),and they don't want to sit in front of computer to watch whats going on during copy command,and then delete the data files.

--------------------------------------------------------------------------------
2:{*)How can I create one?

--------------------------------------------------------------------------------
just add few commands and save as.bat
u may use any textfile editor like notepad(MSWindows)or edit filename.bat(DOS)
3 :{ Any example?
dir
dir/w
dir/s
dir/p

--------------------------------------------------------------------------------
3:{ How can I use batch file to help me?

--------------------------------------------------------------------------------
In number of ways.
If u ur using DOS,then its the best tool.
How many times u type Dir?
How do you delete all temp and BAK file in one shot?
Answer is batch files.
If u are not using DO,but using sortware that creates numbers of tmp and/or BAK file(e.g-TC/TC++).
Answer is same.

--------------------------------------------------------------------------------
4:{ I know initial level of batch programming that u explained ,I want more is there any more in Batch programming,in short tell me about serios commands?

--------------------------------------------------------------------------------
A) "ECHO"
@ECHO OFF
ECHO "THIS TEXT WILL BE DISPLAY ON SCREEN WITHOUT ECHO WORLD"
ECHO ON
ECHO "THIS TEXT WILL BE DISPLAY ON SCREEN WITH ECHO WORLD"

--------------------------------------------------------------------------------
Any file with the extension of .bat
These file are use to perform number of task one by one,well this is the original idea,infact it was when multitasking was not posible or expensive.
Old days systems are not well capable to do things as faster than today, you may be sitting in fast processor based computer but those days fast means just a little faster than your sci.caluator.
Whenever they want to do things they usally create batch file in which they may place commands to perform the task by computer.like u may love to do this
1dir
2dir/w
3dir/s
see what will happen,if ur system has lots of file than u may impress your girlfriend to inform her that you computer has a virus and u love to see that.
Well back to the topic those guys commands big jobs once and try to do other small or imp. work.like they may love to created file such as:
del *.tmp
del *.bak
del *.obj
del *.txt
copy *.data file to tapedrive
del *.data
this second last command will take log time(more than hrs if file is long,usally yes),and they don't want to sit in front of computer to watch whats going on during copy command,and then delete the data files.

--------------------------------------------------------------------------------
2:{*)How can I create one?

--------------------------------------------------------------------------------
just add few commands and save as.bat
u may use any textfile editor like notepad(MSWindows)or edit filename.bat(DOS)
3 :{ Any example?
dir
dir/w
dir/s
dir/p

--------------------------------------------------------------------------------
3:{ How can I use batch file to help me?

--------------------------------------------------------------------------------
In number of ways.
If u ur using DOS,then its the best tool.
How many times u type Dir?
How do you delete all temp and BAK file in one shot?
Answer is batch files.
If u are not using DO,but using sortware that creates numbers of tmp and/or BAK file(e.g-TC/TC++).
Answer is same.

--------------------------------------------------------------------------------
4:{ I know initial level of batch programming that u explained ,I want more is there any more in Batch programming,in short tell me about serios commands?

--------------------------------------------------------------------------------
A) "ECHO"
@ECHO OFF
ECHO "THIS TEXT WILL BE DISPLAY ON SCREEN WITHOUT ECHO WORLD"
ECHO ON
ECHO "THIS TEXT WILL BE DISPLAY ON SCREEN WITH ECHO WORLD"

Batch files do still have their place in modern IT. Granted there are better 'languages' to achieve purpose of a batch file, but they aren't anywhere as quick to produce a simple 'program' to achieve a simple task.

For example, say you wanted to clear your temp directory at startup on a 9x system. You could use a proper programming language, such as C++, but this would require compiling it into something that is 16 bit compatible. And of course you also need to know the fairly complex syntax of C++ in order to do it. Using a batch file, it would take you all of about 30 seconds to write it. This is why batch files are still relevant.

\"Death is more universal than life; everyone dies but not everyone lives.\"
A. Sachs

Batch files do still have their place in modern IT. Granted there are better 'languages' to achieve purpose of a batch file, but they aren't anywhere as quick to produce a simple 'program' to achieve a simple task.

For example, say you wanted to clear your temp directory at startup on a 9x system. You could use a proper programming language, such as C++, but this would require compiling it into something that is 16 bit compatible. And of course you also need to know the fairly complex syntax of C++ in order to do it. Using a batch file, it would take you all of about 30 seconds to write it. This is why batch files are still relevant.

\"Death is more universal than life; everyone dies but not everyone lives.\"
A. Sachs