Button for NetConnect with needed parameters

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
menet
Member
Member
Posts: 199
Joined: 2005-04-21, 12:27 UTC
Location: Paris, France

Button for NetConnect with needed parameters

Post by *menet »

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 :wink:
#22273 Personal licence
User avatar
Stefan2
Power Member
Power Member
Posts: 4153
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

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








 
Post Reply