Re: Copy A:\ to C:\ Folder



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
.



Relevant Pages

  • Splitting archives across floppies
    ... automate that and the copying of the files onto floppies. ... sysadmin worthy of the name should be able to knock that up in ten ... user-friendly front ends for the common things. ... and the increased capacity and reliability of tape over floppy ...
    (Fedora)
  • Re: how to reformat floppies that have data on them
    ... I've now got a floppy formatted with a low level format using the ... see if you can put an ext2 filesystem on one of the floppies. ... I looked in the BIOS of the other machine, and the only boot options are ...
    (Fedora)
  • Re: The future of Diskette bootstraps
    ... >>longer but floppies are too small to be used much longer. ... >>with floppy drives anymore. ... number of small Micro-ATX boxes purchased sans floppy or CD drives. ... original plan was to cart a USB floppy around when needed, ...
    (Fedora)
  • Re: Cannot read any disk in floppy drive
    ... Pull the darned floppy out of the machine, and throw all your floppies away. ... My Intel motherboard will not allow the use of on-board floppies (so says the ... Now that my machine is home, the warranty is now in effect. ...
    (microsoft.public.windowsxp.general)
  • Re: how to reformat floppies that have data on them
    ... The problem could well be the floppies. ... I have also had luck with erasing the floppy with a bulk ... tape eraser before formatting them. ... Saying that though, mainframes used to use tape drives for data storage, but were in very clean environments, and backups are still made onto tape, so it's not necessarily the media, just the darned floppy discs. ...
    (Fedora)