1.

Solve : Identifying source drive in XCOPY?

Answer»

Can you help with using XCOPY from within a BAT file that I put on a CD? I have been using the following:

xcopy /i /s D:\*.* C:\temp

but the problem is that not all PCs have the CD drive as D:

Is there a way to identify the "D:" drive as this can change depending on how a PC is configured. I read in an earlier forum message that one way could be to ask the user with e.g. set /p SetDrive=Type your CD drive and press enter

but this is not practical as some users WOULD not know their drive.

Any ideas would be WELCOME ...



Discussion

No Comment Found