I'm trying to write a batch file that copies a folder from my flash drive to the desktop. I want the batch file to achieve this on any pc in my college.

the command wmic logicaldisk get caption,description allows to me to find out which drive letter has been assigned to my removable disk.

I need to somehow set the drive letter of my usb disk as a variable.

Any ideas?


I think this thread is the solution you are looking for : https://superuser.com/a/139935/395792

Especially the 2nd part of the post.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.