Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How copy files to a removable drive by DRIVE NAME, not letter in DOS

Avatar of parcou
parcou asked on
Microsoft DOS
7 Comments1 Solution464 ViewsLast Modified:
I need to write a .bat file for my sales reps in the field to copy specific files to a drive by the NAME of the drive and not by drive letter to a removable source (Jump drive, SD, CF, etc.). They are on Win2000 and do have network drives when on the LAN. This is a problem for me because all my reps will not have the same removable drive letter.

How can write the code in DOS to take files from the local (c:) drive and copy them to a removable drive by its DRIVE name and not by drive letter? I am not computer dumb but I would appreciate it if you would be detailed in the instructions.

eg.
SD card, drive name "REP" - with a folder in the root directory called "backup"

xcopy "c:\documents and setting\%username%\my documents" (here... what script can I use to copy files to the removable drive by Drive Name)

it may be more detailed than this but I wanted to give you an idea

Thx
ASKER CERTIFIED SOLUTION
Avatar of Steve Knight
Steve KnightFlag of United Kingdom of Great Britain and Northern Ireland imageIT Consultancy

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answers