Computing.Net > Forums > Programming > help me about bat file programming

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

help me about bat file programming

Reply to Message Icon

Name: Adnan
Date: March 1, 2002 at 09:59:54 Pacific
Comment:

hi all
i need some basics conceps about bat file programming any one have idea plz send it to me
Thanx



Sponsored Link
Ads by Google

Response Number 1
Name: Godila
Date: March 1, 2002 at 12:01:00 Pacific
Reply:

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


0

Response Number 2
Name: Adnan
Date: March 2, 2002 at 10:04:31 Pacific
Reply:

Hi

Thanx for providind me info. about batch file programming

Thanx again


0

Response Number 3
Name: venkat
Date: June 10, 2002 at 03:00:28 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


C++ help vb programming - DOS - pr...



Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: help me about bat file programming

Hanging Bat File www.computing.net/answers/programming/hanging-bat-file/16570.html

plz help me abt swf files www.computing.net/answers/programming/plz-help-me-abt-swf-files/8612.html

Bat File Help www.computing.net/answers/programming/bat-file-help-/9414.html