Re: Check for a file in an ftp directory

Tech-Archive recommends: Speed Up your PC by fixing your registry



On Sat, 11 Jun 2005 13:18:29 -0400, "Mostro" <mostro@xxxxxxxxxx> wrote
in microsoft.public.scripting.wsh:

>I would like to run a script (WSH/VB) from my desktop to check on files that
>have been uploaded to an FTP site. I don't want to download the file or
>upload a file just check if the file name and/or the extension exists. Can
>someone point me in the right direction.

Any reason why this has to be in VBS? The command line interpreter I use
(4NT) incorporates FTP in a rather transparent manner. In your case, the
command would look like:

IF EXIST "ftp://server/dir/fu.bar"; ECHO fu.bar exists.

This feature is documented at <http://jpsoft.com/help/ftpservers.htm>.
4NT is a commercial product.

FYI: I use something similar every day where a scheduled batch file
checks whether the required number of files are present on a FTP server;
it even checks their content with 4NT's equivalent of FIND.EXE (FFIND)
for correct information before downloading, which of course is just a
simple COPY command:
COPY "ftp://server/dir/fu.bar"; d:\dir\

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
.



Relevant Pages

  • RE: sharing info between Access and a website
    ... The website is mostly updated by end users with a store ... server via FTP, replacing the existing file. ... before the upload process. ... I'd like to download those changes into Access, ...
    (microsoft.public.access.modulesdaovba)
  • RE: sharing info between Access and a website
    ... server via FTP, replacing the existing file. ... before the upload process. ... hours (when users are not activly using the web site) then you could actually ... I'd like to download those changes into Access, ...
    (microsoft.public.access.modulesdaovba)
  • RE: FTP difficulties 4.8R
    ... Use 'script /root/display.lst' command to capture all content going ... Explain how you have router configured. ... This is my second call for help regarding ftp and network ... It does go outside and connect, sometimes I can ftp download some ...
    (freebsd-questions)
  • Re: Cant delete folders in ftproot
    ... This is a natural result of allowing anonymous users the right to upload ... _and_ download from the same area. ... manually, rather than through FTP. ... A 'tagging' incident doesn't generally mean that you've allowed a hacker to ...
    (microsoft.public.inetserver.iis.ftp)
  • ftp via bat called by wsh
    ... I am ftping a directory of files using a bat file called from a wsh file. ... I cannot get the ftp command line to close when using MPUT - the ftp ... But I need to upload ALL the files. ...
    (microsoft.public.scripting.wsh)