I give my ftp command files the ext of .ftpcmd. Just to avoid confusion and
make them easier to find.

Kevin Bilbee

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Curt Turner
> Sent: Thursday, December 18, 2003 4:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [IMail Forum] [OT] Batch files / script
>
>
> Try this:
>
> 1.bat
> ftp -i -s:C:\2.txt
> del c:\ttt\*.*
>
> 2.txt
> open x.x.x.x
> user
> pass
> cd /home/sites/site2/web/
> mput c:\ttt\*.pdf
> quit
>
> You have to use mput to put multiple files. Also, the
> script isn't actually a batch file - you may want to
> give it a .txt extension just to avoid confusion.
> Inserting a "quit" command at the end of the ftp
> script will make it exit back out to the batch file
> where you can delete the files in c:\ttt.
>
>
>
> --- Vincent Jordan <[EMAIL PROTECTED]> wrote:
> > Im trying to generate a batch file to take .pdf
> > files and upload via ftp to
> > a web server then delete the files from orginal dir
> > when uploaded. Ive got
> > most of it worked out but am getting stuck in a
> > couple spots.
> >
> > 1.bat
> > ftp -i -s:C:\2.bat
> >
> > 2.bat
> > open x.x.x.x
> > user
> > pass
> > cd /home/sites/site2/web/
> > put c:\ttt\*.pdf    [ this part isnt working it will
> > not upload multiple
> > *.pdf files do I have wildcard syntax wrong?]
> >
> > Would like to delete all files in c:\ttt after
> > upload tried
> > Del c:\ttt\*.* and not working   could not find file
> > but I guess that is
> > because im still logged into the ftp server.
> >
> > Bye
> >
> > //EOF
> >
> >
> >
> > Any help would be appriciated
> >
> >
> > To Unsubscribe:
> > http://www.ipswitch.com/support/mailing-lists.html
> > List Archive:
> >
> http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
> > Knowledge Base/FAQ:
> http://www.ipswitch.com/support/IMail/
>
>
>
>
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
>
> To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
> List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
> Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/
>


To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to