Re: If file exist in FTP location download, otherwise quit

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I was thinking about that, but that would be more setup, I may have to do
this on many workstations.

"Clay Calvert" wrote:

> On Sun, 14 Aug 2005 12:36:03 -0700, "Steve Barak"
> <SteveBarak@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> >I have a script that invokes built in Windows ftp to download a file and
> >delete it after download. My problem is if the file at the ftp location does
> >not exist, ftp for some reason overwrites the local file and blanks it out (0
> >kb). I need a way to make sure that if file is not in ftp location to leave
> >the local file alone. I don't know how to create an If this Then that Else
> >quit with remote files on ftp. Any idea on how i can make it so that if
> >remote file does not exist do NOT overwrite the local file with a blank one?
>
> Though not a direct answer. How about downloading the file to a
> temporary location first, then copy it if it isn't zero bytes?
> Clay Calvert
> CCalvert@xxxxxxxxxxx
> Replace "W" with "L"
>
.



Relevant Pages

  • Re: If file exist in FTP location download, otherwise quit
    ... Assuming you are using the FTP dos command, ... ftp for some reason overwrites the local file and blanks it ... I need a way to make sure that if file is not in ftp location to ...
    (microsoft.public.scripting.wsh)
  • Re: If file exist in FTP location download, otherwise quit
    ... >delete it after download. ... My problem is if the file at the ftp location does ... ftp for some reason overwrites the local file and blanks it out (0 ... I need a way to make sure that if file is not in ftp location to leave ...
    (microsoft.public.scripting.wsh)
  • Re: python file synchronization
    ... | need to cut down the file size so when server grabs the file, ... Copy the whole file with FTP. ... it looks like you can do a partial file fetch, also, by issuing a REST ... function that fetches part of a local file just by opening it. ...
    (comp.lang.python)
  • Re: How to open a doc on my website.
    ... When I doubleclick on an FTP site, ... > FTP location' but when I try to connect it will not Log ... > work based on the values in my FTP client. ... >>> clicked opens an Add/Modify FTP locations dialogue box. ...
    (microsoft.public.word.docmanagement)
  • Re: How to open a doc on my website.
    ... I have used the 'Add a network place' wizard to 'add the ... FTP location' but when I try to connect it will not Log ... I can only connect using an FTP client. ...
    (microsoft.public.word.docmanagement)