One-touch batch replacement file name

The use of computers and smart phones nowadays is nothing more than to help provinces help us complete various “tasks” and speed up our efficiency. Let's take the batch renaming of files. For example, "Right mouse button + hand tap" is the most basic and "Hand tap + Tab" is advanced. ACDSee comes with functions that can handle picture types. Basically, the mop renamer can batch. But don't forget to count the time for searching, downloading, installing, setting, and waiting. Because the "home barrel" caused by software downloads is also a normal additional "injury." Why doesn't you have to use your own features to get everything? "Time is money, my friends!"

timgUIQDQZVQ

Win10 comes with PowerShell can be said to be a very powerful system and program management automation command environment, not only can be a perfect alternative to CMD.

For documents like Xiao Bian, if you want to change the name from “Wallpaper” to “Wallpaper”,

QQ picture 20170309160718

Just run as an administrator and run the following code:

$Path = 'D:\Wallpapers'

$Filter = '*.jpg'

$newtext = 'wallpaper'

$oldtext = 'Wallpaper'

Ls $Path -Include $Filter -Recurse | ForEach-Object{Rename-Item $_.FullName$_.FullName.Replace($oldtext,$newtext)}

Simply explain: $Path represents the file path, $Filter refers to the file type (video .avi, .mkv, audio .mp3, .ape are all good, you want to rename the file in batches, fill it here Into the file suffix), $oldtext and $newtext will not say more, the original name and want to replace the name, fill in on the line.

QQ picture 20170309160902

We can also save the above code in Notepad and other text editors, and change the file suffix to .ps1 (the PowerShell executable file). Then we want to change what we want to directly modify the four contents in the well-executed file. That's it.

QQ image 20170309161053

Once and for all, do not plan to try?

Wall Wash Lights

Wall Wash Lights ,Led Wall Washer Light,Led Wall Washer,Wall Washers

Guangzhou Cheng Wen Photoelectric Technology Co., Ltd. , https://www.pantallaledcw.com

This entry was posted in on