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