drag-drop onto batch file
Hello, y'all!
I have a batch file that runs a script. I want to drag a file onto the batch file's icon in order to upload it to the server. My script works fine if I send a parameter by commandline, say
ftp.bat "myfile.html"
but it doesn't work if I drag a file onto the batch icon.
Here is the contents of my batch file:
winscp.com /script="ftpdrop.txt" /parameter %1
in my script, I have simply:
open user:pasword@myftpsite:21
put %1%
close
exit
I have a batch file that runs a script. I want to drag a file onto the batch file's icon in order to upload it to the server. My script works fine if I send a parameter by commandline, say
ftp.bat "myfile.html"
but it doesn't work if I drag a file onto the batch icon.
Here is the contents of my batch file:
winscp.com /script="ftpdrop.txt" /parameter %1
in my script, I have simply:
open user:pasword@myftpsite:21
put %1%
close
exit