FTP batch called by ISS dll hangs after 300-500 files

B

Bernhard Sollfrank

Hello,

i have to start a batch process from a dll to transfer
files created by this dll to remote ftp server. I created
a batch file:

ftp -n -v -i -s:D:\batch\ftpcmds.txt ftp-server

and a file containing the ftp commands:

user username password
lcd D:\batch\media
mput *.*
quit

It works pefectly when i start it from the dosbox. But
when i call it from the vb dll implemented in IIS (shell
("D:\batch\transfer.bat")), it does not complete the
transfer and hangs after 400-500 (small) files.

Anyone an idea? Any help would be greatly appreciated!

Bernhard.
 
R

Ray at

Try piping your FTP session to an output file to see if you can follow
what's happening.

ftp -n -v -i -s:D:\batch\ftpcmds.txt ftp-server>D:\ftp.log

and/or

Dump each step to the file. IE
user username password * D:\ste1.txt
lcd D:\batch\media * D:\step2.txt
mput *.* * D:\step3.txt

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top