bibikurosawa / dokan

Automatically exported from code.google.com/p/dokan
0 stars 0 forks source link

DokanSSHFS - enhancement - command line parameters to skip settings dialog #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The DokanSSHFS utility is absolutely wonderful and extremely fast.

But it would sure be nice if I could use command line parameters or 
something so I can script Dokan to auto-mount my drives when wndows 
starts, without the annoying settings dialog.

Original issue reported on code.google.com by dizzlern...@gmail.com on 11 Nov 2008 at 7:07

GoogleCodeExporter commented 9 years ago
Yes this is exactly what I am after as well...

Original comment by tim.ocon...@gmail.com on 21 Oct 2009 at 6:11

GoogleCodeExporter commented 9 years ago
+1, This feature is really useful mounting / unmounting on batch script (for 
people bound to win but with the sticky bit set to nux)

Original comment by frederic...@gmail.com on 20 Jul 2010 at 10:49

GoogleCodeExporter commented 9 years ago
I need this too :-)

Example:
DokanSSHFS.exe -h 10.10.10.99 -p 22 -u %USERNAME% -i identityfile.key  -r /home 
-L X

-h = host
-p = port
-u = username (accepts standard username variable)
-i = identity file
-P = passphrase
-PW = password
-R = Server Root
-L = Drive Letter
Other Options:
-c = disable cache
-o = Without Offline Attribute

Would also be nice to see a checkbox say "Persistent?" that could do the above 
for you across reboots...

Original comment by claytont...@gmail.com on 10 Nov 2010 at 10:08

GoogleCodeExporter commented 9 years ago
The feature would be wonderful to have.

Since DokanSSHFS stores all the connection settings, a -P %PROFILE_NAME% would 
be enough...

There is a fork mentioned in this topic:
http://groups.google.com/group/dokan/browse_thread/thread/84d52e3ad3297c0a/ba4f8
7de8413fb1a?lnk=gst&q=DokanSSHFS.exe#ba4f87de8413fb1a

Can't you just merge his changes, and let him know?

Original comment by takacs.b...@gmail.com on 28 Dec 2011 at 1:32

GoogleCodeExporter commented 9 years ago
I'm too noobish to check anything out from git, so I made an Auto Hot Key 
script in my startup folder that looks like this:

<code>
Run "C:\Program Files (x86)\Dokan\DokanSSHFS\DokanSSHFS.exe"
sleep 1000
Send 
{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}{tab}password{tab}{tab}{tab}{tab}{t
ab}{tab}{enter}
sleep 4000
Send {enter}
</code>

Replace the first line (between the quotes) with the path to your 
DokanSSHFS.exe if it's different.
Replace password in the middle of the third line with your password.
You can change the sleep time to higher or lower if your computer is slower or 
faster than mine.

Obviously it would be better if DokanSSHFS.exe accepted command line arguments, 
but for my needs this does the trick, and a 5 line macro was quick and easy 
enough.

Original comment by Link...@gmail.com on 15 Sep 2012 at 5:45

GoogleCodeExporter commented 9 years ago
This would be an excellent idea

Original comment by hcjehg@gmail.com on 6 Mar 2013 at 10:33

GoogleCodeExporter commented 9 years ago
any kind of auto-connect and auto-reconnect would be nice

Original comment by omegat...@gmail.com on 18 May 2014 at 3:31