Information générale
Catégorie:
Applications Internet
Not sure what is mean't by "scripting" it. Here is what I do. Is there some other way to do this that doesn't result in the DOS window being open while it is executing the FTP (cmd) command ?
nHandle = fcreate("gprices.cmd")
if nHandle < 0
quickMail("Unable to create GPRICES.CMD")
exit
endif
fputs(nHandle,"AH4755")
fputs(nHandle,"6322")
fputs(nHandle,"binary")
fputs(nHandle,"cd fusion\us\science")
fputs(nHandle,"get price.exe")
fputs(nHandle,"quit")
fclose(nHandle)
cmd = "run ftp -s:gprices.cmd ftpsecure.ingrammicro.com"
&cmd
>Hey Don,
>
>That's why you script the FTP command (using "quit" as the last command) and make the call to the FTP command from a batch so you don't have the hanging window.
>
>There are FTP hosts out there that respond the FTP "user" command but don't respect the equivalent properties in the iNet control for whatever reasons; in the case of MVS systems, it's that damn RAS security.
>
>
>
>>Well, one thing I didn't mention was that I have had no problem with using the DOS FTP command. That works just fine. I just thought it would be nice to do this without having to open a DOS window.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement