How to connect to a network folder

Get help for specific problems
Posts: 1
Joined: 11 Oct 2011

tecnezio

Hi,
I want create a batch job that synchronize one local folder to a network
folder.
Whit what syntax should i write username and password of the network folder ?
User avatar
Site Admin
Posts: 7048
Joined: 9 Dec 2007

Zenju

Currently there is no syntax to do this. FreeFileSync will automatically show
the password prompt if required.
Now this doesn't mean that this couldn't be done. Question is how the syntax
should look like.
Maybe something like:
\\network\share name:zenju password:123
\\network\share name:"zenju x" password:"123 456" (quotes if words contains
spaces")
User avatar
Site Admin
Posts: 7048
Joined: 9 Dec 2007

Zenju

Problem with this is that password would be saved within ffs_batch files,
which creates a security risk. If such a risk is acceptable, one might as well
have Windows remember the password and avoid having to enter it alltogether.
Right now, I'm not sure how useful this will be.
Posts: 22
Joined: 18 Dec 2009

grobbla

In this case, I am using a batch cmd job to connect to the resource:
net use \\network\share /user:name passwd
Advantage is, you can close the connection after ffs has finished:
net use \\network\share /d /y
Advantage two is, that you can do additional things in this batch, like
sending a notification message if ffs exits with a bad error level.
Posts: 2
Joined: 14 Oct 2011

jcuzella

I haven't tested this in a batch job, but the \\network\share syntax works
through the GUI
Posts: 22
Joined: 18 Dec 2009

grobbla

No drive is being mapped. This is just for the credentials to the resource. If
there is no current connection to the server/share, ffs will not be able to
access it, like any other program.