Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code reuse in Windows scripts

Status
Not open for further replies.

DayLaborer

Programmer
Jan 3, 2006
347
US
I have a command file that contains the following lines of code:
Code:
Set mm=%date:~4,2%
Set dd=%date:~7,2%
Set yy=%date:~-2%
set filename=ANX-1-%mm%%dd%%yy%-1
We need to use similar code in many different command files. What is the best way to reuse the code?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top