Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hi all
i need some basics conceps about bat file programming any one have idea plz send it to me
Thanx

A batch files is just a collection of command line commands. Such as: cd\, cd dos, del c:\autoexec.bat, edit autoexec.bat, attrib -s -h -r msdos.sys.
They are very good ways to save time. For example, if you want to edit the msdos.sys and you are tired of typing the attrib command over and over and over again. You can make a file that looks like this.
cd\
rem Gets you to the root directory.attrib -s -h -r msdos.sys
rem takes the attributes off of the file so rem you may edit it.edit msdos.sys
rem Opens Microsofts Edit program and loads rem msdos.sys**rem is stands for remark. anything you write after it will be commented out.
Those are kind of the basics of batch files. There is a lot more to it though. You can declare variables and wierd looking things like this %path%. I dont know about the percent things though. Maybe somebody else does and can provide and example. Might help me out too.
HTH

I have to do a task, like it should run daily and through ftp it down load the file for unix to nt machine for that i need some sample bat file code for ftping for nt to unix.
Thanks

![]() |
C++ help
|
vb programming - DOS - pr...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |