WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

FTP Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

FTP and PcAnyWhere

 Keywords:  FTP Pc PCAnyWhere AnyWhere problem

Question:

When using Winbatch to FTP "get" or "put" and having PCAnywhere running, we lose connection after transferring a few files. Turn of PCAnywhere and it works Great. We would like to use PCAnywhere since this is a remote server and we would like to be able to 'watch' processes. Any help/suggestions would be greatly appreciated.

Answer:

I have never heard of this problem using FTP functions and PCAnyWhere.

What extender are you using (Wininet, or WinSock)? What version of that extender?

Can you FTP using anything other than winbatch (i.e., ftp.exe, ws_ftp ,etc.) when PCAnyWhere is running?

What happens exactly does WinBatch hang? Does it exit unexpectedly? Does it error?

We would need alot more details, to debug this issue. Try narrowing down the code to just the FTP operation. Add DebugTrace(@ON,"Trace.txt") to the beggining of the script. Post the resulting trace file....

User Reply:

using wwwsk32i.dll 
Dual 1GHz w/ 1GB RAM
NT 4 w/ SP6a
pcAnywhere v. 9.21

Sample area of code(in a for loop)

rslt=iFtpPut(conhandle,
fileName,"%destDir%\%prDate%\%newDirName%\%fileName%",0,@BINARY)
if rslt==0
FileWrite(log,"ERROR - Unable to ftp %newDirName% - %fileName%")
endif

What I get is an error in my log file "ERROR - Unable to ftp 200106 - BELLINP.TBL"

The IT person thinks that FTP and PCAnywhere may be trying to grab the same port at the same time.

Note: We have received PCAnywhere ver10 and might give that a try.


Article ID:   W14809
File Created: 2001:11:08:12:40:06
Last Updated: 2001:11:08:12:40:06