Batch file help

  • Thread starter Thread starter Mark Warbeck
  • Start date Start date
M

Mark Warbeck

Sorry for the repost, but I originally posted close to the weekend and
didn't get any responses.


I have a laptop user running XP Pro. He uses a PC Card hard drive as a
backup. I wrote a cmd file to make sure the drive is there, then use
robocopy to image his My Documents folder to the removable drive. The
problem is sometimes he has an external Zip drive connected. Thus the drive
letter of the removable drive may be D or it may be E, depending on the
sequence that the drives are connected. Can I force the PC Card hard drive
to always be the same drive letter or include code in the cmd file so it can
tell which is the hard drive? The cmd also includes commands to zip his
mailboxes and copy them to the removable drive.

Thanks,
Mark
 
So then in my script instead of using a hard coded drive letter I'd use %dl.
Is that correct?
Thanks,
Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top