inGearX3.1415 9265 join:2000-06-11 New York |
inGearX
Member
2014-Aug-11 10:45 am
help - symbolic link / mirror files? (dropbox - sync folders outsidedropbox - sync folders outside .. but what about files? so I want to sync filesoutside of c:\Dropbox here » lifehacker.com/5154698/s ··· x-folderwe can do it to FOLDERS: mklink /D "C:\Dropbox\backup" "C:\backup"
But what about files? mklink /D "C:\Dropbox\backup\AutoHotkey.ahk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\AutoHotkey.ahk"
any ideas? thank you.. |
|
therube join:2004-11-11 Randallstown, MD
1 recommendation |
therube
Member
2014-Aug-11 11:19 am
Have you tried it? Does it sync? I would think it should work. So dropbox limits you to one folder, now why do they do that? Link Shell Extension (LSE) |
|
dave Premium Member join:2000-05-04 not in ohio |
to inGearX
If you want to create a symbolic link to a file, don't tell the OS to create a symbolic link to a directory (/D).
Try mklink /?
Lessons: (i) don't blindly use commands you read on a web site; you need to understand them. (ii) For most commands, there's a good chance that the /? switch will tell you the command syntax. |
|
inGearX3.1415 9265 join:2000-06-11 New York |
to therube
mklink /D "C:\Dropbox\backup\AutoHotkey.ahk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\AutoHotkey.ahk"
did not work it created a DIRECTORY instead of a file :/ |
|
inGearX |
to dave
said by dave:If you want to create a symbolic link to a file, don't tell the OS to create a symbolic link to a directory (/D).
Try mklink /?
Lessons: (i) don't blindly use commands you read on a web site; you need to understand them. (ii) For most commands, there's a good chance that the /? switch will tell you the command syntax. yes I've seen mklink /? was still worth a try .. here is the mklink /? C:\Users\A>mklink /?
Creates a symbolic link.
MKLINK [[/D] | [/H] | [/J]] Link Target
/D Creates a directory symbolic link. Default is a file
symbolic link.
/H Creates a hard link instead of a symbolic link.
/J Creates a Directory Junction.
Link specifies the new symbolic link name.
Target specifies the path (relative or absolute) that the new link
refers to.
any ideas? any suggestions? |
|
inGearX |
to therube
said by therube:So dropbox limits you to one folder, now why do they do that? yes it really sucks :/ |
|
dave Premium Member join:2000-05-04 not in ohio |
to inGearX
Exactly what I said before: if you don't want a directory symlink then don't use /D, which means "I want a directory symlink". |
|
|
|
to inGearX
I've done what you're trying to do with Microsoft's One Drive and Junctions. therube's link to Link Shell Extension makes the task much easier. |
|
norwegian Premium Member join:2005-02-15 Outback |
to inGearX
said by inGearX:quote: mklink /D (this switch needs removing) "C:\Dropbox\backup\AutoHotkey.ahk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\AutoHotkey.ahk"
did not work it created a DIRECTORY instead of a file :/ I'll take the code switch in your post out to highlight what dave is suggesting about [/D] Directory. said by dave:If you don't want a directory symlink then don't use /D, which means "I want a directory symlink". Which you don't need for your requirements. |
|