Tony, >What I want to be able to do is: > >User signs on >Initial program drops them straight into an FTP session >Initial program performs GET on file (name of which is based on user ID) >to users local C: drive >User then exits, having no chance to get to command line, FTP command >line or menu. > >I'm sure this can be done, but don't really have an idea of where to >start. >From the PC this can be done with a batch file like; @echo off if "%1"=="" goto NOUSER if "%2"=="" goto NOPASS echo open 22.214.171.124 > ftp.scr echo %1 >> ftp.scr echo %2 >> ftp.scr echo get myfile c:\myfile >> ftp.scr echo quit >> ftp.scr ftp -s:ftp.scr del ftp.scr goto END :NOUSER echo *** No USER ID supplied *** goto END :NOPASS echo *** No PASSWORD supplied *** goto END :END This will create a ftp.scr file, pipes out the supplied userid & password system & file to get, then pipes this ftp.scr into FTP. Afterwards it deletes the ftp.scr 'cos the password is in it !! Using one of the shareware prgrams that convert .bat files to .com files, this program source becomes more secure. HTH --phil. -- Phil Hall ____________________________ email . . . : email@example.com phone(w). . : (312) 258-6319 +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to "MIDRANGE-L@midrange.com". | To unsubscribe from this list send email to MAJORDOMO@midrange.com | and specify 'unsubscribe MIDRANGE-L' in the body of your message. | Questions should be directed to the list owner/operator: firstname.lastname@example.org +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.