Re: Copy A:\ to C:\ Folder
- From: "Randy Birch" <rgb_removethis@xxxxxxxx>
- Date: Thu, 1 Sep 2005 22:33:24 -0400
The windows message for error 1223 is "The operation was canceled by the
user."
--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
----------------------------------------------------------------------------
Read. Decide. Sign the petition to Microsoft.
http://classicvb.org/petition/
----------------------------------------------------------------------------
<tclarke@xxxxxxxxxxxxxx> wrote in message
news:1125606613.671487.78620@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
: Yes it was 'bad floppies'. I surmised that the SfileOp was returning 0
: or 1223 by using the followind code with both 'good' and 'bad'
: floppies:
:
: CopyFloppyToFolder = SHFileOperation(SHFileOp) = 0
: MsgBox SHFileOperation(SHFileOp)
:
: When I used this, the 'good floppy' returned 0 and the 'bad floppy'
: returned 1223 (not L1223).
:
: When I use:
:
: CopyFloppyToFolder = SHFileOperation(SHFileOp) = 0
: MsgBox Err.LastDllError
:
: both the 'good floppy' and the 'bad floppy' return 6.
:
: When I use:
:
: CopyFloppyToFolder = SHFileOperation(SHFileOp) = 0
: MsgBox CopyFloppyToFolder
:
: I get True for 'good floppy' and False for 'bad floppy'.
:
: The reason I'm using SHFileOp is that the source disks are exam disks
: and I have to retain their origional organisational structure. To do
: this I copy the disks to a folder and then use the copy for marking
: purposes.
:
: Although the SHFileOp code seems to be working OK and I intend to use
: it for the time being, I'm a bit aprehensive and will look further into
: using VB code as you suggest. But I'm still curious as to the reasons
: for the different error messages.
:
: I've tried using VB to XCOPY and FileCopy without success and would be
: grateful if you could show me an example of your code.
:
: Thanks, Terry
:
.
- References:
- Re: Copy A:\ to C:\ Folder
- From: tclarke
- Re: Copy A:\ to C:\ Folder
- From: J French
- Re: Copy A:\ to C:\ Folder
- From: tclarke
- Re: Copy A:\ to C:\ Folder
- Prev by Date: Re: Best Way To Design Form w/Hundreds of Yes/No Fields
- Next by Date: Re: Repaint problem on small images?
- Previous by thread: Re: Copy A:\ to C:\ Folder
- Next by thread: Best Way To Design Form w/Hundreds of Yes/No Fields
- Index(es):
Relevant Pages
|