|I want to pass a filename to upload to a ftp.|
I tried using a tempvar and also a command line parameter
set /p filename="Please enter filename "
@ftp -i -s:"%~f0"&GOTO:EOF
It is not working and fails at the mput command.
ftp> mput "%filename%"
%filename%:File not found
When i populated as a commandline argument by replacing the command as mput %1, it also failed.
Please let me know how to fix this or the correct way to populate that filename variable to upload.