Command line parameters
Appearance
Total Commander can be called with one or two directories as command-line parameters. This will set these directories in one or both of the file windows. This allows you to create multiple icons for Total Commander, e.g., in the start menu or on the Desktop, which start Total Commander in different directories or even with packed files. Furthermore, a different ini file than the default wincmd.ini can be specified to allow multiple users on the same machine to have different settings in Total Commander.
Syntax
totalcmd.exe [/o] [/n] [Drive1:\Directory1 [Drive2:\Directory2]] [/i=name.ini] [/f=ftpname.ini]
or:
totalcmd.exe [/o] [/n] [/L=Drive1:\Directory1] [/R=Drive2:\Directory2] [/i=name.ini] [/f=ftpname.ini]
Parameters
Drive:\Directory |
Loads the first directory passed to Total Commander into the left window, and the second into the right window. Directory names containing spaces must be put in double quotes! Always specify the full path name, including the drive! To open a stored FTP connection, use FTPOPEN:stored_ftp_name as path. | ||||||||||||||||
LOADLIST:path\listfile.txt |
Loads a list of files/folders from the given text file into the file panel, same as the LOADLIST0 button bar command.Also accepts shares in the form \\server\share\subdir or smb://server/share/subdir, and virtual folders in the form shell:Folder or ::{GUID of folder}.Instead of a directory, you can also pass a .tab file to load the saved tabs (replacing the current tabs). | ||||||||||||||||
/O |
If Total Commander is already running, activate it and pass the path(s) in the command line to that instance (overrides the settings in the configuration dialog to have multiple windows). Now supports additional parameters:
/S=.
| ||||||||||||||||
/N |
Opens in any case a new Total Commander window (overrides the settings in the configuration dialog to allow only one copy of Total Commander at a time). | ||||||||||||||||
/L= |
Set the path in the left window. | ||||||||||||||||
/R= |
Set the path in the right window. | ||||||||||||||||
/A |
When an archive file is passed as a path, do not open it, but instead open the directory containing the archive and set the archive as the active file (place the text cursor on it). | ||||||||||||||||
/P(without=)
|
Open the parent directory of the passed path, and place the cursor on the last directory in the path, e.g. /P c:\Windows\System32 go to c:\Windows and place cursor on System32.
| ||||||||||||||||
/S |
Interprets the passed dirs as source/target instead of left/right (for usage with /O). For example, a dir passed with /R= will be interpreted as the target dir. | ||||||||||||||||
/S=C |
Start "Compare by content" without the TC main window, e.g., totalcmd.exe /S=C c:\file1 d:\file2.
| ||||||||||||||||
/S=F |
Open "Find Files" dialog without TC main window, e.g. totalcmd.exe /S=F "c:\start path".Accepts additional parameters separated by a colon, e.g. /S=F:S1Lname.
| ||||||||||||||||
/S=L |
Start Lister directly, pass file name to it for viewing (requires full name including path). May include bookmark in html files, e.g. c:\test\test.html#bookmark.Accepts additional parameters separated by a colon (e.g., /S=L:AT1C1250):
| ||||||||||||||||
/S=P:PORT |
Start a parallel or USB port server for direct cable connection (Use LPT1 or USB as port names).
| ||||||||||||||||
/S=S |
Start "Synchronize dirs" directly, accepts two paths as parameters, or alternatively a settings name in the form /S=S:SettingsName.If the parameter begins with an equal sign " =", e.g. /S=S:=SettingsName, the comparison will start immediately. If the equal sign is the only parameter, e.g., /S=S:=, the comparison will start with the passed directories and last used options.
| ||||||||||||||||
/O=list_name |
Only combined with /S=S: Passes list file for function "Only selected (in main window)", e.g. /O=%F.
| ||||||||||||||||
/T |
Opens the passed dir(s) in new tab(s). Also works when Total Commander hasn't been opened yet. | ||||||||||||||||
/B |
Similar to /T, but the tab is opened in the background (not activated) when opened in an already running program. | ||||||||||||||||
/M= |
Set dark mode option: 0=light, 1=auto (like Windows 10 apps), 2=dark.
| ||||||||||||||||
/P= |
Sets the active panel at program start: /P=L left, /P=R right. Overrides wincmd.ini option ActiveRight=.
| ||||||||||||||||
/i=name.ini |
Use a different INI filename.ini instead of wincmd.ini to save settings (see also: INI file description).
| ||||||||||||||||
/F=ftpname.ini |
Use a different INI filename.ini instead of wcx_ftp.ini to save settings for the built-in FTP client.
| ||||||||||||||||
/d=<x> |
Delays the start of Total Commander by <x> seconds (meant for the startup folder, if there are problems with other programs, which start at the same time).
| ||||||||||||||||
/INSTALLDRIVER |
(Windows NT-based systems) Install parallel port driver - only needed if you want to use the parallel port connection as a normal user and not as an administrator. Needs to be run as an administrator. | ||||||||||||||||
/INSTALLDRIVERQ |
Like /INSTALLDRIVER, but silent installation. | ||||||||||||||||
/REMOVEDRIVER |
(Windows NT-based systems) Removes the driver installed with the switch /INSTALLDRIVER. | ||||||||||||||||
/REMOVEDRIVERQ |
Like /REMOVEDRIVER, but silent removal. |
The switches are NOT case sensitive.
Examples
totalcmd.exe c:\windows
|
left window is loaded with c:\windows
|
totalcmd.exe d:\data c:\programs
|
left: d:\data, right: c:\programs
|
totalcmd.exe /R=d:\data
|
right window: d:\data
|
totalcmd.exe "d:\Letters to Mr. Smith"
|
left: long name -> in double quotes! |
totalcmd.exe /R="d:\Letters from Miller"
|
right window loaded with long name |
totalcmd.exe c:\data\backup.zip
|
opens backup.zip in the left window
|
totalcmd.exe /I=Miller.ini /F=MFtp.ini
|
uses Miller.ini instead of wincmd.ini for all settings, and MFtp.ini for FTP
|
totalcmd.exe /O /L=c:\ /R="d:\doc"
|
activates already running Total Commander and sets the left path to c:\, and the right path to d:\doc
|
totalcmd.exe /O /S /R=c:\somepath
|
opens c:\somepath in the current TARGET panel of the running program. Explanation: /S causes Total Commander to read /L as source and /R as target directory instead of left and right. |
totalcmd.exe /O /T /L=c:\somepath
|
opens a new directory tab on the left side of the already running Total Commander with c:\somepath in it.
|
totalcmd.exe /O /S /A c:\path\archive.zip
|
opens c:\somepath directory in the active panel of the currently running Total Commander and place the cursor on a file without entering it if the file is an archive (.zip, etc).
|
Back to Configuration