How to open multiple files from remote servers for editing?
Hello,
Firstly, thank you for WinSCP. Rarely a day goes by without me using the app, so thank you.
I regularly open a set of files from multiple remote servers. I've tried writing a small batch file to automate the opening of the files for editing in WinSCP's internal editor:
When I run the .bat file I see a blank Command Prompt window and the first script is opened in WinSCP's internal editor. However, I need to close the internal editor before the second script is opened, and I need to close that before the 3rd script is opened, etc...
Can I get all 4 scripts to open in the internal editor as soon as I run the .bat file?
Is it possible to hide the blank Command Prompt window? And one final question – is it possible to open the scripts in an external editor?
Thanks again!
Kind regards,
/Neil
Firstly, thank you for WinSCP. Rarely a day goes by without me using the app, so thank you.
I regularly open a set of files from multiple remote servers. I've tried writing a small batch file to automate the opening of the files for editing in WinSCP's internal editor:
:: edit_files_winscp_ie.bat @echo off C:\Utilities\WinSCP\WinSCP.exe "host1" /edit /home/user/script1.sh C:\Utilities\WinSCP\WinSCP.exe "host1" /edit /home/user/script2.sh C:\Utilities\WinSCP\WinSCP.exe "host2" /edit /home/user/script1.sh C:\Utilities\WinSCP\WinSCP.exe "host2" /edit /home/user/script2.sh :eof
When I run the .bat file I see a blank Command Prompt window and the first script is opened in WinSCP's internal editor. However, I need to close the internal editor before the second script is opened, and I need to close that before the 3rd script is opened, etc...
Can I get all 4 scripts to open in the internal editor as soon as I run the .bat file?
Is it possible to hide the blank Command Prompt window? And one final question – is it possible to open the scripts in an external editor?
Thanks again!
Kind regards,
/Neil