Page 1 of 1
Samba multi user script
Posted: 02 May 2019 19:01
by Wublide
There's a way to script a single catalogue item that let me choose to access a network directory with one user or another one?
Re: Samba multi user script
Posted: 02 May 2019 19:13
by highend
Sure. Open a command prompt and execute
net use /?
Create a simple script by using e.g. run or runret()...
Re: Samba multi user script
Posted: 02 May 2019 19:20
by Wublide
highend wrote: ↑02 May 2019 19:13
Sure. Open a command prompt and execute
net use /?
Create a simple script by using e.g. run or runret()...
yeah i was pointing in net use direction but how can i integrate it in script language? i did some sort of xyplorer scripting in the past but something really basic
Re: Samba multi user script
Posted: 02 May 2019 19:22
by highend
but how can i integrate it in script language?
Again, by using run or runret()? And ask for a user name by using input()...
Re: Samba multi user script
Posted: 02 May 2019 19:31
by Wublide
highend wrote: ↑02 May 2019 19:22
but how can i integrate it in script language?
Again, by using run or runret()? And ask for a user name by using input()...
something like that
Code: Select all
run net use X: \\path\to\share
input()
?
Re: Samba multi user script
Posted: 02 May 2019 19:36
by highend
Does it make any sense to ask for some user name to connect with (and asking for a password is necessary as well!)
after executing the
net use command?
You should at least read up those commands before using them

Re: Samba multi user script
Posted: 02 May 2019 19:44
by Wublide
highend wrote: ↑02 May 2019 19:36
Does it make any sense to ask for some user name to connect with (and asking for a password is necessary as well!)
after executing the
net use command?
You should at least read up those commands before using them
yeah you're right, i find that
net use X: \\path\to\share * /USER:username /PERSISTENT:YES
it's what i was looking for, but now i have to solve the windows ridicolous system error 1219 that do not permit multiple connection to the same resource with different concurrent user
