Re: use a drives guid instead of its letter - where is the drive root ?
AugustA <[email protected]>
| Newsgroups | alt.comp.os.windows-xp,alt.windows7.general |
|---|---|
| Organization | To protect and to server |
| Message-ID | <[email protected]> |
On Wed, 1 May 2024 18:13:56 -0500 VanguardLH <[email protected]> wrote: V> set fileid=USB29072.id V> for /f %i in (`fsutil fsingo drives`) do V> if exist (%i%%fileid%) set targdrv = %i V> V> Note: Within batch files, double the percent sign on vars, like %%i. V> The %fileid% var doesn't need doubled percents. V> V> That's just off the top of my head without any testing of syntax or V> results. [...] fsinfo, not fsingo. :D This would have been handy in the past. Interesting.