How do I create a persistent virtual folder on windows 10?

7

1

I would like to map one folder, which unavoidably has brackets in it's path, to another virtual folder that I can use to access it without brackets in the path.

For example:

C:\Users\Marc\Dropbox (Company Name)\

would be accessible via something like:

C:\MyVirtualDropboxFolder\

Marc

Posted 2015-11-24T10:14:38.773

Reputation: 189

Answers

7

I would like to map one folder to another virtual folder

You can use mklink in a cmd shell:

mklink /d C:\MyVirtualDropboxFolder "C:\Users\Marc\Dropbox (Company Name)" 

Notes:

  • The Target is quoted as the name contains spaces.
  • The above command creates a Directory symbolic link.
  • See the table below for other kinds of link you might consider making instead.
  • All the links types are persistent (until they are deleted).
  • To explicitly delete them see "How to delete" in the last column of the table below.

mklink

Create a symbolic link to a directory or a file, or create a hard file link or directory junction

Syntax

MKLINK [[/D] | [/H] | [/J]] Link Target

Key:

/D Create a Directory symbolic link. (default is file)

/H Create a hard link instead of a symbolic link.

/J Create a Directory Junction.

Link The new symbolic link name.

Target The path (relative or absolute) that the new link refers to.

enter image description here

Source mklink


Further Reading

DavidPostill

Posted 2015-11-24T10:14:38.773

Reputation: 118 938

Comments are not for extended discussion; this conversation has been moved to chat.

– Journeyman Geek – 2015-11-24T12:44:17.587