|
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 195.111.111.111 > 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 . . . : hallp@ssax.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: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.