Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

Guest

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.
martin

Re: drag-drop onto batch file

Try enclosing the %1% into double-quotes. It is needed, if the path your drop on the .bat file has spaces in it.

put "%1%"
BGM

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