How to escape % inside "net use"-batch for Connections Docs mount script?

Hey guys !

Is it possible to use % inside a user password and still be able to mount the drives using /net use-command ? Did anybody manage to solve the problem ?
I have tried every escape-character I could found on the internet but I was not able to find a solution for that problem.
You can try to reproduce the problem by sharing some local folder on your Win10, create an account (e.g. "netuse") with a % inside the password and then try to run the command via a batch file "net use K: \\localhost\share net%use /user:netuse".

Regards,
Jan

I did several tests with mounting shares for docs and none was reliable. The easiest and best way os using mklink. Or go straight to Linux :wink:

mklink /D C:\focsshare \server\share\

So create a link to your network share and use the local path within the docs configuration.

Cheers
Christoph

I will keep that one in mind !
Was able to found another way

Found a solution: % can be escaped using %%
e.g. password : net%u$e

So you would need to call "net use J: \\smbfiler01\shared net%%u$e /user:"winuser" /persistent:yes"