dslreports logo
 
    All Forums Hot Topics Gallery
spc
Search similar:


uniqs
1240

inGearX
3.1415 9265
join:2000-06-11
New York

inGearX

Member

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/s ··· 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

1 recommendation

therube

Member

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

dave to inGearX

Premium Member

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

inGearX to therube

Member

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

inGearX to dave

Member

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

inGearX to therube

Member

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

dave to inGearX

Premium Member

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 Member
join:2004-10-18
Canada

urbanriot to inGearX

Premium Member

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

norwegian to inGearX

Premium Member

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.