This is an old revision of the document!
Working with File Names and Paths
WinSCP offers set of features to work with names of files and directory paths.
Advertisement
Clipboard
File Name
You can copy names of files selected in file panel to clipboard, either just names or full paths. Go to File(s) > File Names > Copy to Clipboard or Copy to Clipboard (Include Paths). The command is also available from file context menu.
File URL
You can also copy file URL to clipboard. URL will be in format:
<protocol>://<session>/<path>/<filename>
where protocol
is “scp” or “sftp” and session
is name of currently opened stored session or user@host
. This is URL format that WinSCP understands, when registered to handle SCP and SFTP protocols URL addresses.
See example of custom command that puts HTTP (web page) URL of file to clipboard.
Current Working Directory
To copy path to current working directory to clipboard, go to Commands > Copy Path to Clipboard in Explorer-like interface or Local (Remote) > Copy Path to Clipboard in Norton Commander interface.
You can also open directory whose path is stored in clipboard.
Command Line
You can insert names of files selected in active file panel to command line in Norton Commander interface. Use command Files > File Names > Insert to Command Line (or press Ctrl+Enter
).
Advertisement
Custom Commands
More advanced way how to execute remote command that works with names of files selected in file panel is custom commands feature.