Announcement

Collapse
No announcement yet.

Change to drive using it volume label not drive letter

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Change to drive using it volume label not drive letter

    Hi

    Id like to have a batch file that will be able to read my USB even if the drive letter has changed

    To do this I'm thinking I can set the volume label to be e.g. USB001

    Now I need to be able to change to that USB key location from within the batch file.

    kinda like cd USB001

    Anyone have a clue ?

    Thanks

    Confuseis








  • #2
    CD will only change to the directory and not a volume label AFAIK. However this appears to do what you want it to.

    http://stackoverflow.com/questions/2...a-windows-path

    Comment

    Working...
    X