Tag Archives: rename files

Rename files after their modification dates in C#

Lately I’ve been creating one file a day and I wanted to rename the files after their modification dates. Something like “File 04-01-20.jpg.” So I wrote this program to do that. Enter the directory that you want to search, a … Continue reading

Posted in files | Tagged , , , , , , , , | 2 Comments

Number files in a directory in C#

I recently went on a trip where I took almost a thousand pictures. My phone (which has a pretty good camera) gives the pictures file names such as WP_20151106_22_04_47_Pro.jpg. I wanted an easy way to number files so they have … Continue reading

Posted in directories, files, system | Tagged , , , , , , , , , | Leave a comment

Use regular expressions to rename files within a date range and that match a pattern in C#

This example extends the example Use regular expressions to rename files that match a pattern in C# to let you rename files within a date range. See the previous example for most of the details. This post describes the changes … Continue reading

Posted in files, regular expressions | Tagged , , , , , , , , , , , , | Leave a comment

Use regular expressions to rename files that match a pattern in C#

This example shows how to use regular expressions to rename files. To use the program, enter a directory name and a file pattern. Also enter regular expression find and replace patterns. When you click Preview Changes, the program searches the … Continue reading

Posted in files, regular expressions | Tagged , , , , , , , , , , | 4 Comments