How to enter to created folder?

English support forum

Moderators: Stefan2, white, sheep, Hacker

Post Reply
crashdiet
Junior Member
Junior Member
Posts: 6
Joined: 2018-03-15, 08:41 UTC

How to enter to created folder?

Post by *crashdiet » 2019-05-28, 10:13 UTC

Hello!

I made button and add command for it to make folder I want, for example PREVIEW
cmd /c mkdir PREVIEW

Here the image what I meant:
Image: https://yadi.sk/i/YjUVGVMc_HN-rw

What command I need to add after cmd /c mkdir PREVIEW to get inside in created folder immediately?

Total version 7.55

Thanks a lot!! I'm not programmer so need help

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

Re: How to enter to created folder?

Post by *Stefan2 » 2019-05-28, 13:54 UTC

Hi and welcome crashdiet.


Me think a possible way is to call TC a second time and tell him to set the path in Source Panel to the wanted one.

totalcmd.exe [/o] [/n] [Drive1:\Directory1 [Drive2:\Directory2]] [/i=name.ini] [/f=ftpname.ini]
totalcmd.exe /O /S /L="path"

/O ==> If Total Commander is already running, activate it and pass ...
See Help > Configuration and Switches > Command line parameters





You can still execute that all from a button...

Command: cmd /c
Parameters: MD "PREVIEW" && %%Commander_Exe%% /O /S /L="%PPREVIEW"
Start path:
Icon: cmd
Tooltip: MD and CD



Note that MD-command use the path from current active panel as CWD,
but the "/L=" command line parameter seams to need a full path (click [Help] in button dialog to read about "%P")
Or I did it wrong.

%Commander_Exe% is a system variable set by running TC and available inside of TC.



HTH?
Inofficial FAQs || WIKI (Deu/Eng) || TC Home (What's new? // FAQ // Download // Order // Addons // Tools // Plugins)
Erst wenn der letzte Baum gefällt oder die letzte Biene verendet ist, werden die Leute verstehen warum Umweltschutz wichtig ist.

User avatar
clifford_cooley
Junior Member
Junior Member
Posts: 38
Joined: 2019-03-05, 06:04 UTC
Location: USA

Re: How to enter to created folder?

Post by *clifford_cooley » 2019-05-28, 14:13 UTC

Entering "cmd /k mkdir PREVIEW & cd PREVIEW" in TC command-line works for me.

But that wouldn't control TC panel locations. Follow Stefan2's advice above for changing TC panel locations.
License #116347

crashdiet
Junior Member
Junior Member
Posts: 6
Joined: 2018-03-15, 08:41 UTC

Re: How to enter to created folder?

Post by *crashdiet » 2019-05-28, 15:50 UTC

I don't know but can't undestand why command CD doesn't work. For example I made manually folder PREVIEW. Than I put in command line

cmd /c cd PREVIEW, cmd cd PREVIEW etc.... tryied different lines - not works(

..... and, no any enter in folder. What's wrong? May be I have bad TC?

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

Re: How to enter to created folder?

Post by *Stefan2 » 2019-05-28, 18:26 UTC

crashdiet wrote:
2019-05-28, 15:50 UTC
I don't know but can't undestand why command CD doesn't work.

cmd /c cd PREVIEW, cmd cd PREVIEW etc....
Your CD is a DOS-command from the cmd.exe and works in a DOS-Box (cmd, command line window)
It's not a command for TC in that circumstances you use it.


TC has it own CD command, but that doesn't work the way you wanted to use it.
Try <cd PREVIEW> in TCs command line window or as Commando in a button.

To use a 'CD'-like commando for TC from a DOS-Box, use TCs commandline parameter.




 
Inofficial FAQs || WIKI (Deu/Eng) || TC Home (What's new? // FAQ // Download // Order // Addons // Tools // Plugins)
Erst wenn der letzte Baum gefällt oder die letzte Biene verendet ist, werden die Leute verstehen warum Umweltschutz wichtig ist.

Post Reply