Question Directory/File Renaming/Replacing

Spazz_1219

Reputable
Jul 3, 2016
11
0
4,510
So, I've procured a way to list a group of folders in a directory, now I have another dilemma.
How could I go about renaming the folders using a batch file to remove spaces?

Unfortunately the project I'm working on requires me to not have any spaces in the directory names, therefore if the folders have spaces, it wont work.
I've looked at REN(rename) but I'm still fairly new and don't exactly know how to use it just yet.
 

Spazz_1219

Reputable
Jul 3, 2016
11
0
4,510
Unfortunately that only worked on files and not folders. I did find a workaround using an old powershell script. So it wasn't necessarily what I was looking for.


Yeah this isn't going to work as we're doing things from a single batch file.
Updating files, restarting programs, and creating repositories. Grabbing a spare program is just going to ruin the whole concept of the batch file.