Computing.Net > Forums > Windows XP > DOS Batch File Parameters with Zero

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

DOS Batch File Parameters with Zero

Reply to Message Icon

Original Message
Name: Kevin Johnston
Date: June 13, 2008 at 10:09:50 Pacific
Subject: DOS Batch File Parameters with Zero
OS: Windows XP Professional
CPU/Ram: ?
Model/Manufacturer: Dell Dimension 4550
Comment:

I am writing a DOS batch file in which one of the parameters at the command line has to include zeroes (e.g., 0025). When the parameters are processed, the zeroes are dropped (e.g., 25). However, I need these zeroes respected because the bacth file calls files that have equivalent zeroes in their file names (e.g., GEN_0025.mp3) and the batch file calls the name GEN_25.mp3, which does not exist. Can anyone help?

Thanks very much.


Report Offensive Message For Removal


Response Number 1
Name: Dumbob
Date: June 13, 2008 at 14:50:52 Pacific
Reply: (edit)

Try posing your question in the Disk Op. System Forum.

Eyes left.

There is nothing to learn from someone who already agrees with you.


Report Offensive Follow Up For Removal

Response Number 2
Name: Razor2.3
Date: June 13, 2008 at 17:53:55 Pacific
Reply: (edit)

I'm confused. Are you writing a script for an Operating System that died 13 years ago, or are you writing a Command Script for Windows XP?


Report Offensive Follow Up For Removal

Response Number 3
Name: Seeker
Date: June 21, 2008 at 14:36:07 Pacific
Reply: (edit)

Not sure, but try putting the number inside quotes, eg "0025"

Seeker


Report Offensive Follow Up For Removal







Post Locked

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


Go to Windows XP Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 7 Days.
Discuss in The Lounge
Poll History




Data Recovery Software