Skip to content

emanuellers/batch-rename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BATCH RENAME

Simple project using WIN32 syntax to iterate throughout a directory and rename the files.

How to use:

  1. Compile the project:

g++ -o rename rename.cpp

or

mingw32-make rename

  1. Use the project with flags.
  • -filepath: Complete path of target directory.
  • -templateName: Base name for renaming files.

Example:

.\rename -filepath="C:\Users\Samsung\Desktop\batch_rename\sample" -templateName=newName 

Output example:

Ok... C:\Users\Samsung\Desktop\batch_rename\sample\example_0.t => C:\Users\Samsung\Desktop\batch_rename\sample\newName_0.t
Ok... C:\Users\Samsung\Desktop\batch_rename\sample\example_1.html => C:\Users\Samsung\Desktop\batch_rename\sample\newName_1.html
Ok... C:\Users\Samsung\Desktop\batch_rename\sample\example_2.txt => C:\Users\Samsung\Desktop\batch_rename\sample\newName_2.txt

Objectives:

Learning. Project created to practice beginner concepts from Alura course: C++ Introdução a Linguagem e STL.

About

Windows script to rename multiple files at once.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published