4
I have a .bat script with ftp commands (all in one) similar to this. See 5th down:FTP - Resolving Environment Variables - Creating FTP script on the fly at runtime and using variables within the FTP script
When I run the .bat from command line, everything works well. The files are transferred (in my case) from the server to my computer.
However, when I run this same .bat file by double clicking, it no longer interprets the ftp script correctly.
All other .bat files seem to work the same if they are double clicked vs. called from command line. Will that not work here? If so, why not?
EDIT:
It seems the problem is when it reaches the first ftp command that uses a variable.
For example it will open and connect fine, but then my next command is a get with a variable for the file name. It can't seem to read the variable name and just calls get. However, I do not see this issue when I call the bat from the cmd line....
EDIT
Issue fixed, see my answer below.
Thank You.
1Which version of Windows? If it's Vista or 7 it could be a permissions issue, though your edit detailing the exact symptoms doesn't fit with that diagnosis. – ChrisF – 2010-01-20T23:18:19.900