Re: Command line FTP help
- From: Michael Bednarek <ROT13-zo@xxxxxxxxxxxxx>
- Date: Tue, 13 Dec 2005 19:56:13 +1000
On Mon, 12 Dec 2005 04:00:02 -0800, "Jake" wrote in
microsoft.public.win2000.networking:
>OK here is the batch program:
[62 lines snipped]
I do this regularly using my preferred CLI, 4NT. Applied to your
situation, the following few lines should give you an idea how:
@ECHO OFF
SET logfile=C:\Gnupg\SecureFTP.log
LOG /W %logfile
IFF %# NE 2 THEN
ECHO You must enter 2 parameters - input and output file names.
QUIT 8
ENDIFF
gpg --armor --output %2 --recipient XXXXXXXX --encrypt %1 | TEE /A %logfile
IFF ERRORLEVEL NE 0 THEN
ECHO An error (%ERRORLEVEL) occurred whilst encrypting the file %1
QUIT 4
ENDIFF
COPY %2 "ftp://username:password@xxxxxxxxxxxxxxxxx" | TEE /A %logfile
IFF ERRORLEVEL NE 0 THEN
ECHO An error (%ERRORLEVEL) occurred during the FTP transfer of %2
QUIT 2
ENDIFF
EXIT
4NT's transparent treatment of FTP is documented at
<http://jpsoft.com/help/ftpservers.htm>; its LOG command at
<http://jpsoft.com/help/log.htm>. 4NT is a commercial product; 4DOS is
free, but doesn't support FTP.
--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
.
- References:
- Re: Command line FTP help
- From: Pegasus \(MVP\)
- Re: Command line FTP help
- From: Jake
- Re: Command line FTP help
- Prev by Date: Re: local passwords mysteriously changed on several networked computer
- Next by Date: Mapping a network drive into a sub-folder
- Previous by thread: Re: Command line FTP help
- Next by thread: Any guys who have worked on SMS 2003
- Index(es):
Relevant Pages
|