Re: Copy A:\ to C:\ Folder
- From: erewhon@xxxxxxxxxx (J French)
- Date: Thu, 1 Sep 2005 08:26:20 +0000 (UTC)
On 31 Aug 2005 10:12:43 -0700, tclarke@xxxxxxxxxxxxxx wrote:
>I tried dispensing with SHFilOp and using XCOPY but this would only
>copy to C:\My Documents even though the Target path was completely
>different. I tried to reformat the old floppies but got an error
>message saying "Windows was unable to complete the format".
>So in the end I took both your advice and used new floppies, this
>resolved the problem.
Sounds like damaged floppies
>In answer to: Is SHFileOp returning 1 or 0 for a bad floppy? It returns
>0 for good floppy and 1223 for bad floppy. I've tried to find a
>discription and from what I've seen it seems to mean that there is no
>recognisable media in the floppy drive. Is this correct? If so should I
>include a message box to say that there is no disk loaded or the disk
>is not compatible. Can you advise on error code?
1223L ERROR_CANCELLED
>From the Win4=32 Programmer's Reference Help File
I assume this turned up in Err.LastDllError
SHFileOp should only return a Long Integer containing 1 or 0 which are
the C versions of True and False.
I really would do a bit more checking using pure VB code
You don't need to Shell to XCopy, as much as anything that will create
as many problems as SHFileOp ... when there are problems
VB has a very nice FileCopy procedure, on my version it does not do
*.* but that is not a major problem
.
- Follow-Ups:
- Re: Copy A:\ to C:\ Folder
- From: tclarke
- Re: Copy A:\ to C:\ Folder
- References:
- Re: Copy A:\ to C:\ Folder
- From: tclarke
- Re: Copy A:\ to C:\ Folder
- Prev by Date: Re: Null Value
- Next by Date: Re: Writing text at an angle on a VB Form
- Previous by thread: Re: Copy A:\ to C:\ Folder
- Next by thread: Re: Copy A:\ to C:\ Folder
- Index(es):
Relevant Pages
|