F5F Stay Refreshed Software Operating Systems Yes, you can rename multiple folders using a command prompt.

Yes, you can rename multiple folders using a command prompt.

Yes, you can rename multiple folders using a command prompt.

B
BryanPlayzz
Member
146
03-26-2016, 10:43 PM
#1
I have several folders in the same folder that end with .V2, and you want to rename them to .V6 while keeping the part before .V2 unchanged. You're using Windows 10 and haven't succeeded yet.
B
BryanPlayzz
03-26-2016, 10:43 PM #1

I have several folders in the same folder that end with .V2, and you want to rename them to .V6 while keeping the part before .V2 unchanged. You're using Windows 10 and haven't succeeded yet.

C
chuchero
Member
53
04-11-2016, 04:05 AM
#2
The tool for bulk renaming seems simpler, though I’m familiar with PowerShell commands. This script lists folders, checks for extensions like .V6, and replaces them with .V2 before renaming.
C
chuchero
04-11-2016, 04:05 AM #2

The tool for bulk renaming seems simpler, though I’m familiar with PowerShell commands. This script lists folders, checks for extensions like .V6, and replaces them with .V2 before renaming.

J
josiecatz__10
Senior Member
640
04-11-2016, 08:01 AM
#3
Batch files aren't directly compatible with PowerShell. They run in a different environment and won't work as expected.
J
josiecatz__10
04-11-2016, 08:01 AM #3

Batch files aren't directly compatible with PowerShell. They run in a different environment and won't work as expected.

B
72
04-12-2016, 12:40 PM
#4
PowerShell commands function only in PowerShell. They won’t run in CMD. This script should work in PowerShell (as long as you enter a valid folder and avoid duplicate names). You might want to check if translating it to CMD is possible, or consider creating a batch file that executes the PowerShell script.
B
BrickArms22123
04-12-2016, 12:40 PM #4

PowerShell commands function only in PowerShell. They won’t run in CMD. This script should work in PowerShell (as long as you enter a valid folder and avoid duplicate names). You might want to check if translating it to CMD is possible, or consider creating a batch file that executes the PowerShell script.

S
StyleCheck
Junior Member
10
04-12-2016, 01:51 PM
#5
I noticed several repeated lines in your input. Please paste the full code at once so I can process it correctly.
S
StyleCheck
04-12-2016, 01:51 PM #5

I noticed several repeated lines in your input. Please paste the full code at once so I can process it correctly.

K
killerkindjade
Junior Member
38
04-16-2016, 10:19 PM
#6
I transferred the file to Notepad, adjusted the location, and then used PowerShell to copy everything.
K
killerkindjade
04-16-2016, 10:19 PM #6

I transferred the file to Notepad, adjusted the location, and then used PowerShell to copy everything.

I
iDoNotEvenLift
Posting Freak
936
04-18-2016, 02:03 PM
#7
Yea, but you have like 8 lines of "C:\Users\.." etc., while I only have one line and then the entire script: Plus, didn't the script work for you? You want everything with .V6 at the end replaced with .V2. I don't see any .V6 in your screenshot (anymore).
I
iDoNotEvenLift
04-18-2016, 02:03 PM #7

Yea, but you have like 8 lines of "C:\Users\.." etc., while I only have one line and then the entire script: Plus, didn't the script work for you? You want everything with .V6 at the end replaced with .V2. I don't see any .V6 in your screenshot (anymore).

K
KilleurMiino
Member
166
04-25-2016, 01:30 AM
#8
Like I said in my edited post (written in red), it didn't work for me. This is what I'm doing: My guess is that posting that command here breaks it. EDIT: I thought I edited this yesterday, but I guess I didn't save it properly. This command does work, but I needed to save it into a .ps1 file and load it with PowerShell. That being said, you had the V2 and V6 thing in reverse, so I swap them it it works fine now, thanks. Now I either need to convert my other Command prompt batch file to PowerShell or have this one into Command Prompt. Edited June 20, 2020 by the_importer
K
KilleurMiino
04-25-2016, 01:30 AM #8

Like I said in my edited post (written in red), it didn't work for me. This is what I'm doing: My guess is that posting that command here breaks it. EDIT: I thought I edited this yesterday, but I guess I didn't save it properly. This command does work, but I needed to save it into a .ps1 file and load it with PowerShell. That being said, you had the V2 and V6 thing in reverse, so I swap them it it works fine now, thanks. Now I either need to convert my other Command prompt batch file to PowerShell or have this one into Command Prompt. Edited June 20, 2020 by the_importer

G
GamenMetLeviNL
Senior Member
638
04-30-2016, 01:56 PM
#9
You could achieve this using software. BulkRenameUtility offers a poor user interface, but it handles more than just this task.
G
GamenMetLeviNL
04-30-2016, 01:56 PM #9

You could achieve this using software. BulkRenameUtility offers a poor user interface, but it handles more than just this task.

M
mj18wals
Senior Member
256
05-02-2016, 06:53 AM
#10
M
mj18wals
05-02-2016, 06:53 AM #10