473,569 Members | 2,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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\ftpc mds.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\tran sfer.bat")), it does not complete the
transfer and hangs after 400-500 (small) files.

Anyone an idea? Any help would be greatly appreciated!

Bernhard.
Jul 19 '05 #1
1 4183
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\ftpc mds.txt ftp-server>D:\ftp.l og

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


"Bernhard Sollfrank" <b.*********@ ac-multimedia.de> wrote in message
news:03******** *************** *****@phx.gbl.. .
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\ftpc mds.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\tran sfer.bat")), it does not complete the
transfer and hangs after 400-500 (small) files.

Anyone an idea? Any help would be greatly appreciated!

Bernhard.

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
2469
by: JD | last post by:
This is another Python problem, I think might be unrelated to the earlier bug I found, and eventually figured out how to report it to Sourceforge. This is related to a question I have about Python hanging up either from a shell, or by importing a module. This I would not consider a bug, but more on my inexperience with Python. If...
3
6547
by: Nico | last post by:
I try to execute a shell command from ASP with: response.write("start") Set wshShell = CreateObject("WScript.Shell") wshShell.Run "notepad" Set wshShell = Nothing response.write("finished") but it doesn't work, there is no error message, the page just displays nothing. I tried various commands like "mkdir test" or calling a batch
3
2827
by: Bob | last post by:
I'm currently updating one of our web sites and have encountered a strange problem. The page that is giving me the problem is written in ASP and hits a SQL 2K DB. When I click submit I have 4 procs that need to be executed. I always get a sql server timeout error. I opened up Profiler and traced the events. The page hangs on the last...
0
1160
by: axxegfx | last post by:
i'm using the code i have attached and my problem is: Note: *Needed exontrol nslookup activex control ( www.exontrol.com) *needed batch text (i have attached it with batch_nslookup2.txt name) The program uses a txt batch and after 1000 or 2000 lines program hangs up i don't know where the proble is, it could be the exontrol nslookup...
1
3907
by: Serge | last post by:
Hi, I am having some lock up problems in my c# code. when from a 2nd thread (worker thread) i call a normal standard function like Trace.WriteLine the 2nd thread freezes/hangs. The 2nd thread is started with a normal threadstart, etc. When looking on the internet I found some articles that hangs can be caused by unmanaged threads but I...
0
2254
by: Leo Heska | last post by:
Hi I haven't seen the following problem mentioned anywhere We have an application written in VB.NET which executes a batch file (named startJob.cmd). We have discovered that if that batch file is too big, the last lines of the batch file will not run. For example, the following one-line batch file runs just fine when invoked from our...
1
5788
by: Bucky Pollard | last post by:
I have a web service that needs to create a batch file and call it (since there are no APIs for the functionality I am looking for). I am using the Process and ProcessStartInfo objects. When I try to call the batch file, it just returns with a return code of 1. When I call cmd.exe, and pass the batch file as a parameter it hangs. After much...
1
1121
by: smen | last post by:
hiye, i've got a list of distributers around 300++ and i need to mail each of them and i want performance should i a. loop through it all via stored proc or trigger and send the mail using sql mai b. using vb.net and send the mail through .ne any way besides looping smen
2
2445
by: brian.gabriel | last post by:
I am trying to kick of a DOS program from a VB.Net service. The program works fine when called from a batch file, and from a Windows form, but it has problems when called from a service. The program runs successfully but does not give control back to the service. After the Process.Start statement no code will execute. The program has...
3
2604
rizwan6feb
by: rizwan6feb | last post by:
Hi experts! Recently i was working on "Form Validation Using Ajax". My form validation was creating problem, when a user changes focus too quickly. I had a post related to this, but was unable to solve the problem. Here is the previous post http://bytes.com/forum/thread798289.html Trying to trace the problem I have written a code (Separate...
0
7701
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7615
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7677
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7979
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1223
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.