Home All Groups Group Topic Archive Search About
Author
5 Aug 2006 6:23 PM
Kyote
I'm wanting to copy/move files from 1 directory to another in my
program. I'm even doing a bit of renaming to help these specific files
conform slightly to my preferred naming conventions to help me
organize these files a bit easier.

Sometimes I'm getting 'file exists' errors. I'm sure I can handle
them, so that's not what I need help with. But these files may be the
same file just named slightly different and my renaming will be fixing
that, in some cases. But when I get the 'file exists' error I'd like
to have a window(form) pop up like in explorer that shows the file
that exists, the file I'm trying to place there, the sizes of each and
their creation/modification dates as well maybe. Mostly just file
sizes. I want the window to allow for selection of single file
overwrite/cancel(but to continue with the rest of the operation) or
the choice to always overwrite or not. Plus maybe a button for
canceling the whole operation.

Is there a built in form that covers most of this? Maybe I'm just
missing it in my search's.

Please, any help with this will be very much appreciated!


-------
Kyote
Please reply to the group.

Author
5 Aug 2006 6:57 PM
GhostInAK
Hello Kyote,

Nope.. there's no built-in form that does this.
You can acheive this on your own though.  Add a new 'Dialog' to your project..
add a couple properties for the fileinfo objects you are worried about..
you get the idea.

Then set the DialogResult property of your buttons (In the properties grid).
If yer familliar with the msgbox (or messagebox.show) then you'll catch
on real quick.

-Boo

Show quoteHide quote
> I'm wanting to copy/move files from 1 directory to another in my
> program. I'm even doing a bit of renaming to help these specific files
> conform slightly to my preferred naming conventions to help me
> organize these files a bit easier.
>
> Sometimes I'm getting 'file exists' errors. I'm sure I can handle
> them, so that's not what I need help with. But these files may be the
> same file just named slightly different and my renaming will be fixing
> that, in some cases. But when I get the 'file exists' error I'd like
> to have a window(form) pop up like in explorer that shows the file
> that exists, the file I'm trying to place there, the sizes of each and
> their creation/modification dates as well maybe. Mostly just file
> sizes. I want the window to allow for selection of single file
> overwrite/cancel(but to continue with the rest of the operation) or
> the choice to always overwrite or not. Plus maybe a button for
> canceling the whole operation.
>
> Is there a built in form that covers most of this? Maybe I'm just
> missing it in my search's.
>
> Please, any help with this will be very much appreciated!
>
> -------
> Kyote
> Please reply to the group.