471,305 Members | 1,488 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 software developers and data experts.

Explorer type name for Files when duplicates exists

Hello,

Does C# offer any Classes or API which would copy file's name in
Explorer type name if copied file name is allready in use. If you use
Explorer to create directory it's default name is "new folder". After
creating a new folder again it's name is new folder (2).

So, is there any handy way to copy files so that this kind of name
behaviour would also be used?

I ask this because I have a lot's of files and looping aand comparing
file names sounds a little bit clumsy.

Cheers.
Aug 20 '08 #1
1 1161
On Aug 20, 9:37*am, uupi_...@yahoo.com wrote:
Hello,

Does C# offer any Classes or API which would copy file's name in
Explorer type name if copied file name is allready in use. If you use
Explorer to create directory it's default name is "new folder". After
creating a new folder again it's name is new folder (2).

So, is there any handy way to copy files so that this kind of name
behaviour would also be used?

I ask this because I have a lot's of files and looping aand comparing
file names sounds a little bit clumsy.

Cheers.
Hi,
No, there is no
You need to check the existence of a file and take appropiate actions
Aug 20 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Brian Henry | last post: by
4 posts views Thread by rn5a | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.