BCB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BCB] Win32 API function MoveFileEx



bcb-list@nospam.orionlink.net writes:
>According to the MSDN information MoveFileEx is not supported
>under Windows 9x, only under NT.
>
>Mohammad Iqbal
>

Thank you Mohammad. Just as I heard the notification of your message
coming in, I was beginning to search the MSDN myself. I'm glad I stopped
the search to read your message first - you saved me the extra time.

It is interesting that in the Win32 SDK Help file, under MoveFileEx, you
can click the "Quick  Info" button and it specifically states that you CAN
use MoveFileEx under Win 95 (although as stated by Mkettler@nospam.evi-inc.com,
the "Quick Info" says you can't use it under Win32s) and even goes so far
as to note that the ONLY restriction is that you can't use the
MOVEFILE_DELAY_UNTIL_REBOOT flag.

I guess if we want to move a file across volumes, we have to CopyFile(),
make sure there were no errors and then DeleteFile(). One note about
DeleteFile() - the file doesn't go into the Recycle Bin - it's really
deleted.

Before I go, one word about a fantastic book mentioned on one of the BCB
Websites. Look into Dino Esposito's book "Visual C++ Windows Shell
Programming" published by Wrox Press. It really does a great job
explaining the shell interface and how to use it and enhance it. Mr.
Esposito also warns about documentation errors and where to find further
information about various aspects of programming the shell. Don't be
scared off by the "Visual C++" in the title. Most of the code is pretty
generic. I will be referring to it when I finally break down and use
SHFileOperation() to do all my moving, copying, deleting and renaming.

Thanks for all the responses to my earlier post.

Jim Dodd
Onset Computer Corp.
jim_dodd@nospam.onsetcomp.com


W Komornicki's Home Page | Main Index | Thread Index