dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
561
share rss forum feed


inGearX
3.1415 9265

join:2000-06-11
New York

help - symbolic link / mirror files? (dropbox - sync folders outside

dropbox - sync folders outside .. but what about files?

so I want to sync files

outside of c:\Dropbox

here »lifehacker.com/5154698/sync-file···x-folder

we 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
Reviews:
·Comcast
·Verizon Online DSL

1 recommendation

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,MVM
join:2000-05-04
not in ohio
kudos:8
Reviews:
·Verizon FiOS
reply 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.


inGearX
3.1415 9265

join:2000-06-11
New York
reply to therube
said by therube:

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)

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
3.1415 9265

join:2000-06-11
New York
reply 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
3.1415 9265

join:2000-06-11
New York
reply to therube
said by therube:

So dropbox limits you to one folder, now why do they do that?

yes it really sucks :/

dave
Premium,MVM
join:2000-05-04
not in ohio
kudos:8
reply 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".


urbanriot
Premium
join:2004-10-18
Canada
kudos:3
reply 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
join:2005-02-15
Outback
reply to inGearX
said by inGearX:

said by therube:

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)

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.
--
The only thing necessary for the triumph of evil is for good men to do nothing - Edmund Burke