"Change directory to" via IPC from other applicatt

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
grim
Junior Member
Junior Member
Posts: 8
Joined: 2012-02-23, 07:32 UTC

"Change directory to" via IPC from other applicatt

Post by *grim »

is it possible to instruct existing/running instance of TC to change current directory from external (other) application? Equivalent of "Open folder in Explorer"?
Optionally with ability to specify panel (left/right) and whether to create new tab/window

Thanks
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

From TC Help
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. Also accepts shares in the form \\server\share\subdir or smb://server/share/subdir

/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). Now also works when Total Commander hasn't been open yet.
/P= Sets the active panel at program start: /P=L left, /P=R right. Overrides wincmd.ini option ActiveRight=.
grim
Junior Member
Junior Member
Posts: 8
Joined: 2012-02-23, 07:32 UTC

Post by *grim »

cool
thanks
Post Reply