Posted: 2011-07-14 17:13
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
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:
Location: Prague, Czechia
Try enclosing the %1% into double-quotes. It is needed, if the path your drop on the .bat file has spaces in it.
Posted: 2011-07-18 17:27
Thanks, I actually tried that but it didn't make the difference. However, I did add that to the script nonetheless, but what DID fix it was that in my batchfile, I had to enclose the full path to the script. I assumed the batch file would look in its own folder for the script. Anyway, thanks for your help.
You can post new topics in this forum
And it's free!