Open file on server in external editor via WinSCP CLI
Hello!
I have two files on server (SSH-connection). I'm usually open WinSCP GUI-client and open them in Brackets. I configured the Editor preference table in such way that WinSCP opens HTML, CSS and JS files via Brackets. Now I want to automatize this actions using batch or PowerShell script. I want to open WinSCP GUI and open two files in Brackets via batch script. So I wrote the batch-code below:
But WinSCP opens these files via internal editor. How can I configure the editor in CLI?
I have two files on server (SSH-connection). I'm usually open WinSCP GUI-client and open them in Brackets. I configured the Editor preference table in such way that WinSCP opens HTML, CSS and JS files via Brackets. Now I want to automatize this actions using batch or PowerShell script. I want to open WinSCP GUI and open two files in Brackets via batch script. So I wrote the batch-code below:
start winscp.exe <session_name> winscp.exe <session_name> /edit <path>/my_styles.css winscp.exe <session_name> /edit <path>/my_script.js