Re: Batch File Ends After 295 File Transfers
Windows limit length of commandline to 8191 characters.
Command prompt line string limitation - Windows Client
You might have reached that.
In that case, you will have to either:
Or you have some syntax problem in your batch file at the 295th file.
See https://winscp.net/eng/docs/faq_batch_file#newline_escaping
Command prompt line string limitation - Windows Client
You might have reached that.
In that case, you will have to either:
- Simplify the command to
"get file1.txt file2.txt file3.txt ... .\" ^
– but you might hit the limit sooner or later anyway - Split your commandline into several within the limit.
- The best would be to move the commands to a script file, instead of passing them on the commandline. Use
/script=...
instead of/command
for that. See https://winscp.net/eng/docs/commandline#scripting
Or you have some syntax problem in your batch file at the 295th file.
See https://winscp.net/eng/docs/faq_batch_file#newline_escaping