Command to "open TC and connect a share" ?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
mitm@mitm.sk
Junior Member
Junior Member
Posts: 2
Joined: 2016-04-20, 17:44 UTC

Command to "open TC and connect a share" ?

Post by *mitm@mitm.sk »

Hi there,
I am interested into opening a admin share in total commander from some script or command. Why I am asking about something like this and what is the purpose.
I am using mRemoteNG and its External Tools (Apps) where I have set tool for access admin share in Windows Explorer, it looks like:
Filename: cmd
Arguments: /c start "toto" "\\%Hostname%\d$"

Do you know if it is possible setup something like this for Total Commander?

Thanks
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Hi and welcome!

You want to execute a command line / DOS-Box command from TC?

That is possible, just search the forum for 'cmd button' or 'usercmd.ini'



Here are some collected information about that issue:

How to create an button in the button bar
http://ghisler.ch/board/viewtopic.php?p=287965#287965

Just use your command:
Filename=CMD: cmd /c
Arguments=PARAM: start "toto" "\\%Hostname%\d$"



TCs' user commands (em_xxxxx) 'usercmd.ini'
http://ghisler.ch/board/viewtopic.php?p=291895#291895


How to find and use TCs' internal command
http://ghisler.ch/board/viewtopic.php?p=289931#289931



If you need more specific help, just ask 24/7.


 
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3896
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

... or just create a button with:
Command: cd "\\%Hostname%\d$"
#5767 Personal license
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

I think the OP is asking how to externally launch TC with a specific target:

Filename: C:\PathTo\TotcalCmd.exe
Args: "\\%Hostname%\d$"

For additional options look at the "Command line parameters" section in the help file. "/O" might be the most useful.
mitm@mitm.sk
Junior Member
Junior Member
Posts: 2
Joined: 2016-04-20, 17:44 UTC

Post by *mitm@mitm.sk »

this works like a charm! Many thanks

Filename: C:\PathTo\TotcalCmd.exe
Args: "\\%Hostname%\d$" /O
Post Reply