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
How to enter to created folder?
Moderators: white, Hacker, petermad, Stefan2
Re: How to enter to created folder?
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?
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?
- clifford_cooley
- Junior Member
- Posts: 40
- Joined: 2019-03-05, 06:04 UTC
- Location: USA
Re: How to enter to created folder?
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.
But that wouldn't control TC panel locations. Follow Stefan2's advice above for changing TC panel locations.
License #116347
Re: How to enter to created folder?
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?
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?
Re: How to enter to created folder?
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.