Working with Command Line

When the Command line became active, you can type any command for the system shell, and then execute it with the Enter key. To insert the focused file or directory name from the panel to such command, use following shortcut keys:

Press To
Ctrl+EnterInsert the name of the focused file or directory in the active panel.
Ctrl+Shift+EnterInsert the DOS name of the focused file or directory in the active panel.
Ctrl+SpaceInsert the full name of the current directory in the active panel.
Ctrl+Shift+SpaceInsert the DOS name of the current directory in the active panel.
Ctrl+[Insert the full name of the current directory in the left panel.
Ctrl+Shift+[Insert the DOS name of the current directory in the left panel.
Ctrl+]Insert the full name of the current directory in the right panel.
Ctrl+Shift+]Insert the DOS name of the current directory in the right panel.

On the General page in the Configuration dialog, you can choose if the system command shell window should be closed after execution of the command (Close shell window after command execution). If you execute the command with Alt+Enter key, this setting for the command will be inverted.

The last thirty executed commands are stored in a Command line history. Use Ctrl+Up and Ctrl+Down keys to scroll in this history. If the Command line is active, and you need to switch to some other directory or execute some file in the panel, use Shift+Enter key or Enter key if Command line is empty (e.g. there is nothing to execute).

Command Line Length Limits

The maximal length of command with arguments depends on Windows version. Altap Salamander executes commands through system command shell. It depends on COMSPEC environment variable, usually it is cmd.exe or command.com. See maximal lengths in the following table.

Windows VersionMaximal Length
Windows 2000 4096
Windows XP 8192
Windows XP x64 8156 (for COMSPEC=C:\Windows\system32\cmd.exe; longer COMSPEC, shorter limit)
Windows Vista 8156 (for COMSPEC=C:\Windows\system32\cmd.exe; longer COMSPEC, shorter limit)
Windows 7 8156 (for COMSPEC=C:\Windows\system32\cmd.exe; longer COMSPEC, shorter limit)

See Also

Command Line
Activating Command Line
Group Policy Restrictions