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!

Switching FTP transfer mode in Aspect script

Status
Not open for further replies.

melbazza

Programmer
Oct 2, 2002
1
US
I am a Procomm 4.7 user and need to know whether it is possible to switch between Binary and Ascii transfer modes from within an Aspect script. If so, can anybody tell me what commands are required.
 
Hello,

Look in the Help File under FTP Set & Fetch Commands. Example:

Set Xfermode Binary
Set Xfermode Ascii

Hank camphm@bellsouth.net
 
I have tried to use the set Xfermode to change between Binary and Ascii modes, and even checked it with the fetch command, fetch returned a 0 if Binary was selected, a 1 if ASCII was selected, but it did not seem to have any effect on the mode.

Here is another way you can try, using the Menuselect command which
Selects a Procomm Plus or ASPECT menu item.

Proc Main

#include "pw4menu.inc"

set ftp filter local ""
set ftp filter remote ""
ftp local chdir "c:\program files\procomm plus\backup\"

Menuselect PWMENU 18120 ;see pwmenu.ini file in the aspect directory, this selects Ascii on the toolbar

pause 5

ftp remote copyfile "ASCII filename" ;copy file from the remote ftp site

while $ftpstatus ;Yeild while transferring

yield

endwhile

PAUSE 4

Menuselect PWMENU 18119 ;see pwmenu.ini file in the aspect directory this selects Binary on the toolbar

pause 2

ftp remote copyfile "Binary file name" ;copy file from the remote ftp site

while $ftpstatus ;Yeild while transferring

yield

endwhile

hangup

endproc
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top