One of the many really cool features of WinSCP is the ability to add custom commands. This version 20081114, L.S.Lowe. With some setup you can even open the PuTTY in the same directory as you have opened in WinSCP file panel.
For example, where the remote system is a Linux cluster, it can be used to submit jobs on that remote system. It appears this may be by-design, I've found this in the WinSCP docs: Local commands that are executed on the local machine with remote files downloaded to a temporary folder. I've tried using BComp.exe, but the result is the same -- WinSCP doesn't detect the changed temp file and upload back to the server. I wanna know if there is a way to run WinSCP commands like open sftp..., from a batch file, without having to enter commands after WinSCP opens up.. Here's what I wanna happen: I create a batch file (say demo.bat) that opens WinSCP command-line.
on the pop up menu tht appears mouse over "custom commands". Using WinSCP and custom commands for job submission Part of Guide to the Local System. WinSCP can be used to create and edit remote files, and perform custom commands on those files. The following window then appears. Commands for WinSCP (Advanced) Please note that this is a Hosted~FTP~ resource, …
From the 'Commands' dropdown, choose 'Open Terminal'. In this article, I will describe how to integrate WinMerge into WinSCP to compare a local version of a file to a remote version.
winscp custom commands in the remote window right click on any file/directory. You can have WinSCP open PuTTY terminal client and execute the commands there.
at the bottom are two option, first thing it to make sure that "Custom Command Buttons" is checked. You will now be able to enter shell/SSH commands to execute on your remote server environment.
If there is a remote command you need to execute regularly and in particular if the command works with files, you may find custom commands useful.. A custom command is a predefined command which can contain several patterns that WinSCP replaces, for example, with names of files selected in a panel (see below).
The following window displays after selecting this: Click the OK button to proceed.
?Destination path:?! ; I insert WinSCP commands (open, get, put, etc.) To enter 'Remote Command', select the 'Commands' tab from the top menu. For example, the pre-defined custom command Touch, …
Use following remote custom command to transfer selected remote files to an another server: scp-p -r !&!?Username:?!Host:?!:!
You may want to hard-code the Username and Host, if you work with one destination server only.Or you can use a single prompt for both (possibly even for Destination Path) to keep the flexibility, yet to reduce number of prompts: in demo.bat.The batch file demo.bat opens up WinSCP command-line and executes the commands …