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
To open Generate URL dialog for selected files go to File(s) > File Names > Generate URL. This feature is available only in the latest beta release.
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 interface or Local (Remote) > Copy Path to Clipboard in 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 Commander interface. Use command Files > File Names > Insert to Command Line (or press Ctrl+Enter
).
Custom Commands
More advanced way how to execute remote command that works with names of files selected in file panel is custom commands feature.
Advertisement