Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pcanywhere cannot tranfer files using awrem32

Status
Not open for further replies.

rambleon

Programmer
Mar 6, 2004
130
0
0
IL
When the remote logs in to the host modem (pca 10.5, windows 2000) I want to carry out the following actions:
1. Transfer a file from remote to host
2. Run a batch file containing some (DOS) programs.
3. Transfer a file from host to remote.

I tried the following as a starter to be executed after connection.

Dim oTestApp, strSource, strDestination
Set oTestApp = CreateObject("AWREM32.APPLICATION")
'Transfer to Host
strSource = "C:\mll\wenosh\trout\44160401.024"
strDestination = "C:\temp"
bResult = oTestApp.FileXferToHost(strDestination, strSource)
if bResult = True then
MsgBox "Transfer TO host successful"
elseif bResult = False then
MsgBox "Transfer TO host not successful"
end if

The file transfer doesn't happen - "Transfer to host not successful"

Any suggestions?

Thanks

Rambleon
 
hmmm you have posted in 3 different threads :eek:) heres where I find out where you are actually stuck :eek:)

heres somethings you can try ... your problem is the file transfer is being attempted before the connection is established.

tell you what, check the connectionstatus before you attempt a file transfer, wait for the connection status to get incremented by one, use doevents in your code and lastly try to put in some pausetime before attempting the file transfer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top