SFTP file upload to Web Server and automatically copy it’s URL to clipboard
Dear Friends, I love WinSCP and I have a question for you.
I want to be able to automatically upload image file to Apache Web Server with secure SFTP protocol and automatically copy it’s URL right to the clipboard.
I have an Apache Web Server with address for example: https://example.com
I’m able to upload a file with WinSCP SFTP script to the Web Server root folder but could you please help me with automatic insertion of it’s URL to the clipboard.
For example, I want my clipboard to keep this URL: https://example.com/filename.jpg
I want to be able to automatically upload image file to Apache Web Server with secure SFTP protocol and automatically copy it’s URL right to the clipboard.
I have an Apache Web Server with address for example: https://example.com
I’m able to upload a file with WinSCP SFTP script to the Web Server root folder but could you please help me with automatic insertion of it’s URL to the clipboard.
For example, I want my clipboard to keep this URL: https://example.com/filename.jpg
Here’s my SFTP upload script for a single file: # Automatically abort script on errors option batch abort # Disable overwrite confirmations that conflict with the previous option confirm off # Connect to server (change this to match your connection settings) open sftp://myuser:mypassword@example.com # Apache web-server directory cd "/C:/xampp/htdocs" # Upload the file to current working directory put %1% # Disconnect close # Exit WinSCP Exit