Rothariger Posted August 22, 2005 Posted August 22, 2005 Hello.... i want to know if its posible to rename multiple files like windows does.. example: file zzzzzzz.doc file asdasd.doc file esfsefse.doc if you select the three files and rename it, windows put this way.. file(1).doc file(2).doc file(3).doc is there any vb.net way of doing this? thanks!!! PS: off course i want the easy way, some way for windows api for make it... now i am making by code, but may be, there's a way automatically... or with an api... Quote
Machaira Posted August 23, 2005 Posted August 23, 2005 Sure you can do it: Dim num As Integer = 1 'Don't know how you're selecting and renaming so this is pseduocode For Each <selectedfile> In <selectedfilecollection> File.Rename(<selectedfilename>, <newname> & num & <extension> num += 1 Next <selectedfile> Quote Here's what I'm up to.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.