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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to wait for a file download with out $XFERSTATUS 1

Status
Not open for further replies.

VikramChand

Programmer
Jul 5, 2002
16
US
I have a problem in downlaoding a file.

I used the following code :
***********************************************************
getfile ZMODEM
while $XFERSTATUS
yield
endwhile
***********************************************************

but before the file download is complete other commands are being executed.

Can anybody help me out in this problem

Thanks
Vikram
 
Vikram, modify your code so it loks like below and it should work for you:

getfile ZMODEM
iStatus = $XFERSTATUS
while iStatus==1
yield
iStatus = $XFERSTATUS
endwhile
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top