The answer by 0x90h helped a lot…
I saved this file as u.ftp:
open 10.155.8.215
user
password
lcd /D "G:\Subfolder\"
cd folder/
binary
mget file.csv
disconnect
quit
I then ran this command:
ftp -i -s:u.ftp
And it worked!!!
Thanks a lot man 🙂
More Related Contents:
- Secure FTP using Windows batch script
- Batch file to upload .txt to FTP
- How do I get current date/time on the Windows command line in a suitable format for usage in a file/folder name?
- Symbol equivalent to NEQ, LSS, GTR, etc. in Windows batch files
- How do you get the string length in a batch file?
- How do you loop through each line in a text file using a windows batch file?
- How do I escape ampersands in batch files?
- How to use random in BATCH script?
- Batch script: how to check for admin rights
- Why does %date% produce a different result in batch file executed as scheduled task?
- Setting a system environment variable from a Windows batch file?
- How to correct variable overwriting misbehavior when parsing output?
- In Windows cmd, how do I prompt for user input and use the result in another command?
- Batch script loop
- FORFILES date -after- (date calc in cmd file)
- Create an empty file on the commandline in windows (like the linux touch command)
- XCOPY still asking (F = file, D = directory) confirmation
- Redirecting Output from within Batch file
- Creating a file name as a timestamp in a batch job
- Detect whether current Windows version is 32 bit or 64 bit
- How to check if a service is running via batch file and start it, if it is not running?
- How can I run a windows batch file but hide the command window?
- How to list all folder with size via batch file
- How to wait for a process to terminate to execute another process in batch file
- Access clipboard in Windows batch file
- Rename all files in a directory with a Windows batch script
- Batch file encoding
- How do I increment a folder name using Windows batch?
- Out of a git console: how do I execute a batch file and then return to git console?
- UTF-16 to UTF-8 conversion (for scripting in Windows)