-
Hi all, i've started yesterday with shell (i think it's great) and excuse if i'm missing something. What i've already tried:
Using a bat file: the bat file (working if called from a terminal!): The item for delete mapped drive doesn't need parameters: Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
After a lot of trying i found the solution using bat file: and unmap: But i'd like to not use the bat file, so please if anyone has an advice... |
Beta Was this translation helpful? Give feedback.
-
use /c or /k item(title='Map Z:' cmd-line=if(input('Admin password', 'Enter password') and input.result().len()>8, '/c net use z: \\\\MACHINENAME\\c$ @input.result /user:DOMAIN\\USERNAME', msg('No password!', 'Error', msg.warning)) )``` |
Beta Was this translation helpful? Give feedback.
-
cmd-line='/k net use z: \\MACHINENAME\\c$ 123456789 /user:DOMAIN\\USERNAME & pause & exit' maybe the problem is with \\\\
|
Beta Was this translation helpful? Give feedback.
maybe the problem is with \\\\
input box with masked chars
not possible with NS at the moment. The only options is with powershell (usingSystem.Windows.Forms.Form
) but the code will be "huge".check
input.result()
with regex to prevent unwanted chars like letters