Unable to verify copied file
From: R. Baker (rb33339_at_yahoo.com.au)
Date: 10/22/04
- Next message: Rohit: "Modifying Word document using VBscript/ASP"
- Previous message: Hamm3R0nth3N3T: "From txt to another txt"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Unable to verify copied file"
- Reply: Torgeir Bakken \(MVP\): "Re: Unable to verify copied file"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Rohit: "Modifying Word document using VBscript/ASP"
- Previous message: Hamm3R0nth3N3T: "From txt to another txt"
- Next in thread: Torgeir Bakken \(MVP\): "Re: Unable to verify copied file"
- Reply: Torgeir Bakken \(MVP\): "Re: Unable to verify copied file"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|