hi ihave many files like
File.txt
anotherfile.txt
Log.txt . Etc...
And i want to rename these files into something like this
File1.txt
File2.txt
File3.txt . Etc
So how can i do this in c#
Thank you for your help
shandoosheri
0
Light Poster
Recommended Answers
Jump to PostAre these files in one folder? If so, you can get all files from this folder into a FileInfo[] (you need fileInfo, because you need a full path, so set files back where they were before renaiming).
Then you do some additional code of renaiming and use Move method for …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.