Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 22-01-2007, 12:44 PM   #1 (permalink)
Right Off the Assembly Line
 
thinkdigitreader's Avatar
 
Join Date: Jan 2007
Location: Mumbai
Posts: 46
Question How 2 create batch files..........?


Hello Friends,

Can any one of u give me information on how 2 create batch files & commands which are used in batch files.
__________________
Regards,

ThinkDigitReader
"Knowledge Multiplies By Dividing"
thinkdigitreader is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 22-01-2007, 02:28 PM   #2 (permalink)
GUNNING DOWN TEAMS
 
wizrulz's Avatar
 
Join Date: Mar 2005
Location: MUMBAI
Posts: 1,724
Default Re: How 2 create batch files..........?

To create a basic batch file in MS-DOS, follow the below steps which give you an example of how to create a basic batch file.

Open an MS-DOS command window or get to MS-DOS. Additional information about doing this can be found on document CHDOS.
At the MS-DOS prompt, type edit test.bat and press enter.
If typed properly, you should now be in a blue screen. Within the screen, type:

pause
dir c:\windows
dir c:\windows\system


Once the above three lines have been typed in, click File and choose exit; when prompted to save, click "Yes". Users who do not have a mouse cursor can accomplish this same task by pressing ALT+F to access the file menu, then pressing "X" to exit, and pressing enter to save changes.
Once you are back at the MS-DOS prompt, type test and press enter. This will execute the test.bat file and begin running the file. Because the first line is pause, you will first be prompted to press a key. Once you press a key the batch file will run line-by-line; in this case, listing the files in the windows and windows\system directories.

SOURCE
__________________
The moment U stop learning ......u stop improving
wizrulz is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by abhidev
- by Sarath
- by clmlbx
- by ico
- by clinton

Advertisement




All times are GMT +5.5. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2