Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Change remote directory in custom command

fuligeno wrote:

I use this regularly, and I would love some way to set in the command that after running it winscp will change the remote directory to X.

In general you can setup custom command like:
/path/myscript ; cd /path/results

Unfortunatelly there is a bug in current version of WinSCP preventing WinSCP to notice path change. Send me a mail and I can send you back fixed version.

1. To be able run commands while in a session in the way of scripts like those in "Scripting/Automation" (which currently have local and remote change directory commands), but with the addition of remote execute (which I read that will be possible in the next version).

This is definitelly good idea and I'm considering to implement it sometime.

3. Another, perhaps less ideal, but still simpler and very useful option that would speed all that clicking would be to be able to assign key bindings to both, bookmarks and custom commands. Then I would probably put control-1 to perform the search (the custom command) and control-2 to go to the results directory.

Also on my todo list.
fuligeno

Change remote directory in custom command

Hi,

I made a custom command that executes a remote script to search files in my backups directory in which I have multiple copies of the same files every hour whenever they are changed (with rsync).

The script searchs for all the files with the same name in a backup and it copies them to a "results" directory.

Then I switch to the results (remote) directory with a bookmark and I can edit and compare them with the current file (which i have previously copied to the local directory).

I use this regularly, and I would love some way to set in the command that after running it winscp will change the remote directory to X.

Perhaps a better way would be:

1. To be able run commands while in a session in the way of scripts like those in "Scripting/Automation" (which currently have local and remote change directory commands), but with the addition of remote execute (which I read that will be possible in the next version).

2. Otherwise just a "Change remote directory after running command to:" option in the custom commands window, but it probably wouldn't be all that popular.

3. Another, perhaps less ideal, but still simpler and very useful option that would speed all that clicking would be to be able to assign key bindings to both, bookmarks and custom commands. Then I would probably put control-1 to perform the search (the custom command) and control-2 to go to the results directory.

BTW, thanks for this fantastic program I use everyday. I simply don't need to use a local server to run my programs, I can just edit them with winscp and scite (which just edits every programming language / configuration file i use) as if they were in the same machine fast and comfortably.

Thanks!

. A .