Unable to verify copied file

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: R. Baker (rb33339_at_yahoo.com.au)
Date: 10/22/04


Date: 22 Oct 2004 06:17:14 -0700

I'm a newb to vbscripting and need a bit of help. I need to copy a
file from a server for which the actual filename will vary when copied
(virus definition file). The file will always have a XDB extension
though, and there's only ever one of these files on the server share.
I can copy file to my client using the wshFSO.CopyFile with *.XDB as
the argument. However, it is my understanding that you can't verify
file copy with return codes from the CopyFile method. (If I'm wrong
please correct me). So I tried a wshFSO.FileExists searching for
*.XDB. I suspect it doesn't like wildcards in this instance, as I've
been able to search for files if I use complete filenames, but not
*.XDB.

Is there another way to verify the exisistence of a file, or check
that the file copy was successful?

Many thanks

R. Baker



Relevant Pages

  • Re: Unable to verify copied file
    ... >> file from a server for which the actual filename will vary when copied ... and there's only ever one of these files on the server share. ... it is my understanding that you can't verify ... So I tried a wshFSO.FileExists searching for ...
    (microsoft.public.scripting.vbscript)
  • Re: fetch extension - use local filename from content-dispositionheader (new diff)
    ... Previously giving this non-argument -O flag would use the ... Now this flag takes an expected filename as an argument. ... if we make a mistake in the URL or if the server changes the mapping. ... +If the server sent a Content-Disposition header, the +.Fa content_disposition +field will contain the suggested local filename. ...
    (freebsd-current)
  • Re: Testing a file-type input element
    ... the filename selected is, or whether one was selected at all. ... may arise when the user inadvertently submits the form without selecting all ... I can test for an empty file form element name at the server side script, ... As far as client-side security goes: ...
    (comp.infosystems.www.authoring.html)
  • Re: Need help to reanimate an AT&T AT&T 3B1/7300 UNIX-PC
    ... mad at the user for creating filenames like that on a unix file server. ... pass a filename with '/' in it without attempting to interpret whatever ... at a lower level that the rest of the OS -- which since Microsoft's ... and let the install scripts work from there. ...
    (comp.sys.3b1)
  • Re: Unable to verify copied file
    ... > file from a server for which the actual filename will vary when copied ... and there's only ever one of these files on the server share. ... it is my understanding that you can't verify ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ...
    (microsoft.public.scripting.vbscript)