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 Sat, 4 May 2024 04:16:15 -0500 VanguardLH <[email protected]> wrote: V> Argh, after closing this thread and moving on, I tried to delete the V> textme.txt file using File Explorer. It reported that I needed admin V> privs to delete. Huh? Somehow the file got permissions on it that I V> had not intended. Recreated the file: V> V> echo hello there > V> \\?\Volume{19b786f1-f8cd-4b0c-b51e-66c63d0c3f7e}\testme.txt V> V> That created the file. Then I attempted to delete the test file in File V> Explorer, and got the prompt for admin priv again. Then I did: V> V> echo hello there > C:\testme.txt V> V> and a delete gave the admin prompt again. However, I'm on Windows 10, V> so there may be protections there not back in Windows XP. If I change V> to the C:\TEMP folder, and do the 2nd echo command, no admin prompt to V> delete. So, I tried the UNC w/GUID echo command, but with a folder in V> the UNC path, as in: V> V> echo hello there > \\?\Volume{19b786f1-f8cd-4b0c-b51e-66c63d0c3f7e}\temp\testme.txt V> V> No admin prompt to delete the file. In PS, the remove-item cmdlet V> worked, too. Something about files at the root level of a drive (for V> the OS partition) in Windows 10 that is different than I remember in V> prior Windows versions. Could you delete the \temp folder? Maybe not, if the folder contains files? Can you delete an empty folder? My guess is that there are simply some protections built-in so as not accidentally delete stuff at root level.