ftp via bat called by wsh

From: Kim (kim_at_xxx.com)
Date: 01/12/05


Date: Wed, 12 Jan 2005 17:34:14 -0500

I am ftping a directory of files using a bat file called from a wsh file.

All is working fine with one exception.

I cannot get the ftp command line to close when using MPUT - the ftp
command to upload multiple files.

It will work if I use PUT with one file.

this is the contents of the bat file
    ftp -s:filename.txt myftpsite.com

below are two version of the commands within the filename.txt referenced
above..

 this will not work... It uploads no files and does not close the ftp
connection.

    username
    password
    binary
    CD ecreditexperts
    CD www
    CD admin
    CD doc
    mput "D:\work_tasks\cpi_sales\sales\*.Doc"
    bye

this works - uploads the one file, and then closes the ftp connection and
then the command window.
Exactly what I want it to do... But I need to upload ALL the files.

    username
    password
    binary
    CD ecreditexperts
    CD www
    CD admin
    CD doc
    put "D:\work_tasks\cpi_sales\sales\file.Doc"
    bye

What am I doing Wrong?

thanks for the help
 Kim



Relevant Pages

  • Re: Q: ntlworld uploading files
    ... resource and covered by both virgin media support staff and other virgin ... working - even when I manually open as View as FTP site in Internet ... ExplorerHowever, ever since Virgin took over, my upload space has stopped ... You can upload via the ftp command Start run command type ftp and then ...
    (uk.local.lincolnshire)
  • Re: System restore - problems setting and restoring
    ... I have put the two files on the ftp server again at the ... If so canyou please upload them again ... >For additional information on System Restore please ... At a command prompt, FTP to ftppss.microsoft.com. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: FTP (urgent): can upload from explorer but not using FTP utility????
    ... to upload a simple small text file, the FTP process hang and nothing occurs. ... the FTP server don't return anything too, so I can't list the files in a folder. ... the CD command works fine. ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: Check for a file in an ftp directory
    ... I don't want to download the file or ... >upload a file just check if the file name and/or the extension exists. ... The command line interpreter I use ... incorporates FTP in a rather transparent manner. ...
    (microsoft.public.scripting.wsh)
  • Re: Problem about Window Xp SP2 firewall and the buildin FTP command
    ... I copy your example ftp command file to a.txt saved in C:\dell folder. ... I cannot turn off Windows Firewall, since it is controlled by Domain ...
    (microsoft.public.windowsxp.general)