Hi,
I want to create a TC button to do like cm_NetConnect but adding parameters with this command :
- The drive letter
- and the path of the shared space
There is the command "net use driveletter: \\server\share" but it don't open the desired shard space in one of the Total Commander window like the cm_NetConnect do when the 2 parameters are given and the OK button pressed.
Is there a way to do it ?
If yes, without seeing the Black Command window (less than one second)...
Best regards. Menet
Button for NetConnect with needed parameters
Moderators: white, Hacker, petermad, Stefan2
Button for NetConnect with needed parameters
#22273 Personal licence
for example
Create a user defined command:
[em_NetUseZ]
cmd = cmd /c
para = net use Z: \\server\share
Next use that together with another TC command or two in a button:
cmd = em_NetUseZ,cm_FocusRight,cm_GotoDriveZ
Even better create a batch where you can add more commands as f.ex. a short pause after Net Use:
[em_NetUseZ]
cmd = %Commander_Path%\NetUseZ.cmd
@echo off
net use Z: \\server\share
timeout /t 10
Create a user defined command:
[em_NetUseZ]
cmd = cmd /c
para = net use Z: \\server\share
Next use that together with another TC command or two in a button:
cmd = em_NetUseZ,cm_FocusRight,cm_GotoDriveZ
Even better create a batch where you can add more commands as f.ex. a short pause after Net Use:
[em_NetUseZ]
cmd = %Commander_Path%\NetUseZ.cmd
@echo off
net use Z: \\server\share
timeout /t 10