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



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
    ... >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: 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: 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)
  • Re: Good FTP program?
    ... >> overwrite a local file without crashing, ... > I have encountered that bug with KBear as well up to as recently as KDE ... > uploading and downloading files over FTP and it handles it pretty well. ... > One nice thing you can do with Konqueror is set up a separate FTP profile, ...
    (alt.os.linux.suse)