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 “sftp”, “ftp” or “scp” and session is name of currently opened stored session or user@host. This is URL format that WinSCP understands, when registered to handle SFTP and SCP protocols URL addresses.

See example of custom command that puts HTTP (web page) URL of file to clipboard.

http://www.youtube.com/watch?v=IpO-Qy6L0FA

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).

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

Last modified: by 195.93.21.37