Command line parameters: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
(Adding /INSTALLDRIVERQ and /REMOVEDRIVERQ)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Command line parameters ==
'''Version 6.53'''
'''Version 6.53'''


Line 6: Line 4:




'''Syntax:'''
==Syntax:==


  totalcmd.exe [/o] [/n] [Drive1:\Directory1 [Drive2:\Directory2]] [/i=name.ini] [/f=ftpname.ini]<br>
  totalcmd.exe [/o] [/n] [Drive1:\Directory1 [Drive2:\Directory2]] [/i=name.ini] [/f=ftpname.ini]<br>
Line 15: Line 13:




==Parameters:==
{| border="1" cellspacing="0" cellpadding="5" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse; background-color:#F9F9F9; font-size:96%; empty-cells:show;"
|valign="top" align="left"|
=====Drive:\Directory=====


{| border=0
|valign="top" align="left"|Loads the first directory passed to Total Commander into the left window, and the second into the right window.<br>Directory names containing spaces must be put in double quotes! Always specify the full path name including the drive!
|'''Parameters:'''
|
  |-
  |-
|'''Drive:\Directory'''
|valign="top" align="left"|
|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!
=====/O=====
 
|valign="top" align="left"|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)
  |-
  |-
|'''/O'''
|valign="top" align="left"|
|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)
=====/N=====
 
|valign="top" align="left"|Opens in any case a new Total Commander window (overrides the settings in the [[Options#Operation|configuration dialog]] to allow only one copy of Total Commander at a time)
  |-
  |-
|'''/N'''
|valign="top" align="left"|
|Opens in any case a new Total Commander window (overrides the settings in the [[Options#Operation|configuration dialog]] to allow only one copy of Total Commander at a time)
=====/L======
 
|valign="top" align="left"|Set path in left window
  |-
  |-
|'''/L='''
|valign="top" align="left"|
|Set path in left window
=====/R======
 
|valign="top" align="left"|Set path right window
  |-
  |-
|'''/R='''
|valign="top" align="left"|
|Set path right window
=====/S=====
 
|valign="top" align="left"|Interprets the passed dirs as source/target instead of left/right (for usage with [[Command_line_parameters#/O|/O]]). For example, a dir passed with /R= will be interpreted as the target dir.
  |-
  |-
|'''/S'''
|valign="top" align="left"|
|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.
=====/T=====
 
|valign="top" align="left"|Opens the passed dir(s) in new tab(s) (for usage with [[Command_line_parameters#/O|/O]])
  |-
  |-
|'''/T'''
|valign="top" align="left"|
|Opens the passed dir(s) in new tab(s) (for usage with /O)
=====/P======
 
|valign="top" align="left"|Sets the active panel at program start: /P=L left, /P=R right. Overrides [[Ini-settings#Configuration| wincmd.ini]] option [[ActiveRight]]=0.
Unfortunately this does '''not''' work with the Parameter [[Command_line_parameters#/O|/O]] currently.
  |-
  |-
|'''/P='''
|valign="top" align="left"|
|Sets the active panel at program start: /P=L left, /P=R right. Overrides wincmd.ini option ActiveRight=.
=====/i=name.ini=====
 
|valign="top" align="left"|Use a different INI file name.ini instead of wincmd.ini to save settings (see also: [[Ini-settings#User |INI file description]]).
  |-
  |-
|'''/i=name.ini'''
|valign="top" align="left"|
|Use a different INI file name.ini instead of wincmd.ini to save settings (see also: [[Ini-settings#User |INI file description]]).
=====/F=ftpname.ini=====
 
|valign="top" align="left"|Use a different INI file name.ini instead of wcx_ftp.ini to save settings for built-in FTP client.
  |-
  |-
|'''/F=ftpname.ini'''
|valign="top" align="left"|
|Use a different INI file name.ini instead of wcx_ftp.ini to save settings for built-in FTP client.
=====/d=<x>=====
 
|valign="top" align="left"|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)
  |-
  |-
|'''/d=<x>'''
|valign="top" align="left"|
|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=====
 
|valign="top" align="left"|(Windows NT/2000 only) 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.
  |-
  |-
|'''/INSTALLDRIVER'''
|valign="top" align="left"|
|(Windows NT/2000 only) 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.
=====/REMOVEDRIVER=====
 
|valign="top" align="left"|(Windows NT/2000 only) Removes the driver installed with the switch /INSTALLDRIVER
  |-
  |-
  |'''/REMOVEDRIVER'''
|valign="top" align="left" width="120"|
  |(Windows NT/2000 only) Removes the driver installed with the switch /INSTALLDRIVER
=====/INSTALLDRIVERQ=====
 
|valign="top" align="left"|(Windows NT/2000 only) Install parallel port driver without error message, e.g. for a remote install script.
  |-
|valign="top" align="left"|
=====/REMOVEDRIVERQ=====
 
|valign="top" align="left"|(Windows NT/2000 only) Removes the driver without error message.
  |}
  |}


Line 63: Line 95:




'''Examples:'''


{| border=1 cellspacing="0"
==Examples:==
|totalcmd.exe c:\windows
 
|left window is loaded with c:\windows
 
{| border=0 cellspacing="8"
|valign="top" align="left"|''totalcmd.exe c:\windows''
|valign="top" align="left"|left window is loaded with c:\windows
  |-
  |-
|totalcmd.exe d:\data c:\programs
|valign="top" align="left"|''totalcmd.exe d:\data c:\programs''
|left: d:\data, right: c:\programs
|valign="top" align="left"|left: d:\data, right: c:\programs
  |-
  |-
|totalcmd.exe /R=d:\data
|valign="top" align="left"|''totalcmd.exe /R=d:\data''
|right window: d:\data
|valign="top" align="left"|right window: d:\data
  |-
  |-
|totalcmd.exe "d:\Letters to Mr. Smith"
|valign="top" align="left"|''totalcmd.exe "d:\Letters to Mr. Smith"''
|left: long name -> in double quotes!
|valign="top" align="left"|left: long name -> in double quotes!
  |-
  |-
|totalcmd.exe /R="d:\Letters from Miller"
|valign="top" align="left"|''totalcmd.exe /R="d:\Letters from Miller"''
|right window loaded with long name
|valign="top" align="left"|right window loaded with long name
  |-
  |-
|totalcmd.exe c:\data\backup.zip
|valign="top" align="left"|''totalcmd.exe c:\data\backup.zip''
|opens backup.zip in the left window
|valign="top" align="left"|opens backup.zip in the left window
  |-
  |-
|totalcmd.exe /I=Miller.ini /F=MFtp.ini
|valign="top" align="left"|''totalcmd.exe /I=Miller.ini /F=MFtp.ini''
|use Miller.ini instead of wincmd.ini for all settings, and MFtp.ini for FTP
|valign="top" align="left"|use Miller.ini instead of wincmd.ini for all settings, and MFtp.ini for FTP
  |-
  |-
|totalcmd.exe /O /L=c:\ /R="d:\doc"
|valign="top" align="left"|''totalcmd.exe /O /L=c:\ /R="d:\doc"''
|Activate already running Total Commander and set the left path to c:\, and the right path to d:\doc
|valign="top" align="left"|Activate already running Total Commander and set the left path to c:\, and the right path to d:\doc
  |-
  |-
|totalcmd.exe /O /S /R=c:\somepath
|valign="top" align="left"|''totalcmd.exe /O /S /R=c:\somepath''
|Open c:\somepath in the current TARGET panel of the running program.<br>
|valign="top" align="left"|Open c:\somepath in the current TARGET panel of the running program.<br>
Explanation: /S causes Total Commander to read /L as source and /R as target directory instead of left and right.
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
|valign="top" align="left"|''totalcmd.exe /O /T /L=c:\somepath''
|Open a new directory tab on the left side of the already running Total commander with c:\somepath in it.
|valign="top" align="left"|Open a new directory tab on the left side of the already running Total commander with c:\somepath in it.
  |}
  |}
__NOEDITSECTION__
{{Backlink|Configuration|Configuration}}
[[de:Kommandozeilenparameter]]

Latest revision as of 18:45, 10 June 2006

Version 6.53

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 in progman or the start menu, 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]
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!
/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)
/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 path in left window
/R=
Set path right window
/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.
/T
Opens the passed dir(s) in new tab(s) (for usage with /O)
/P=
Sets the active panel at program start: /P=L left, /P=R right. Overrides wincmd.ini option ActiveRight=0.

Unfortunately this does not work with the Parameter /O currently.

/i=name.ini
Use a different INI file name.ini instead of wincmd.ini to save settings (see also: INI file description).
/F=ftpname.ini
Use a different INI file name.ini instead of wcx_ftp.ini to save settings for 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/2000 only) 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.
/REMOVEDRIVER
(Windows NT/2000 only) Removes the driver installed with the switch /INSTALLDRIVER
/INSTALLDRIVERQ
(Windows NT/2000 only) Install parallel port driver without error message, e.g. for a remote install script.
/REMOVEDRIVERQ
(Windows NT/2000 only) Removes the driver without error message.

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 use Miller.ini instead of wincmd.ini for all settings, and MFtp.ini for FTP
totalcmd.exe /O /L=c:\ /R="d:\doc" Activate already running Total Commander and set the left path to c:\, and the right path to d:\doc
totalcmd.exe /O /S /R=c:\somepath Open 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 Open a new directory tab on the left side of the already running Total commander with c:\somepath in it.



Back to Configuration