Re: Copy A:\ to C:\ Folder



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
:

.



Relevant Pages

  • Re: Copy A: to C: Folder
    ... MsgBox SHFileOperation ... 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 ...
    (comp.lang.basic.visual.misc)
  • Re: Timed Message Box Qs
    ... file at the following link, without wrapping/mangling, in the event ... dig it out of someone else's code example of multiple msgbox ... API experience; hence part of my reason for taking this demo code ...
    (microsoft.public.vb.general.discussion)
  • Timed Message Box Qs
    ... dig it out of someone else's code example of multiple msgbox ... -- I have some but not great module experience and NASA intentional API ... hence part of my reason for taking this demo code route. ... active window below ...
    (microsoft.public.vb.general.discussion)
  • Re: Timed Message Box Qs
    ... dig it out of someone else's code example of multiple msgbox ... -- I have some but not great module experience and NASA intentional API ... hence part of my reason for taking this demo code route. ...
    (microsoft.public.vb.general.discussion)
  • Re: More OS questions
    ... I have XP Pro x64 and Vista Business OEMs lying around waiting to be used, and I'm going to put Ubuntu on the third drive. ... Personally I'd go a 4 disks and RAID 5 em. ... Any particular reason why you want Deskstars? ...
    (uk.games.video.misc)