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?


1 Answer 1


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

Especially the 2nd part of the post.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .