|
现在要做一个ftp下载程序的测试,我想让每个vuser下载时都下载到单独的目录里,请问这里参数化应该怎么写?
script:
Action()
{
//Logon FTP
unsigned long *ftp_session=NULL;
ftp_logon_ex(&ftp_session,"FtpLogon","URL=ftp://192.168.16.119",LAST);
//Insert Rendezvous
lr_rendezvous("---DownloadRendezvous---");
//Dir FTP
ftp_dir_ex(&ftp_session,"FtpDir","PATH=/","PASSIVE=TRUE",ENDITEM,LAST);
//Download from FTP
lr_start_transaction("--- Download Transcation Start ---");
ftp_get_ex(&ftp_session,"FtpLogon","MSOURCE_PATH=/","TARGET_PATH=C:/lrFTP/","PASSIVE=TRUE",ENDITEM,LAST);
lr_end_transaction("--- Download Transcation Stop ---",LR_AUTO);
ftp_logout_ex(&ftp_session);
return 0;
} |
|