3

Background:

I have two virtual drives mapped to folders in the root of my C: drive, using persistent subst (explained in this answer).

Problem:

This answer explains how to make one subst drive use the recycle bin. It works great for one drive, but I can't figure out how to use it for the other one. The OP stated:

… If you have multiple mapped drives, then each should be matched to its own GUID from your favorite GUID generator.

… but I don't know what that means. How does one “match”, get, or set, the GUID for a folder?

1 Answers1

4

The author of the answer used some tool to generate the unique GUID of 9147E464-33A6-48E2-A3C9-361EFD417DEF. The author states you can use this GUID for first mapped drive. For each additional mapped drive, you will need to generate your own unique GUID for use with the drive. You get a new unique GUID by entering the command shown below in a Command Prompt window.

powershell -command [guid]::newguid()

Of course when in a PowerShell window, you can just use the command below.

[guid]::newguid()

If you need a command which works in both Command Prompt and PowerShell windows, then use the following.

powershell -command "[guid]::newguid()"