How do Win10 systems replace file names in batches?

  

In order to save operating time, many Win10 system users want to replace file names in batches. Then, how to replace the file name in batch under Win10 system, in fact, we only need to use Powershell of Win10 system. The following small series introduces you to use PowerShell and Notepad to modify the file name in batches for TV drama video files.

here to download the episodes named & ldquo; Long Medical Fund 01, waves Medical Fund 02, waves medical fund 03 & hellip; & hellip; & rdquo; this order named, now put all files in the & ldquo ; The wave of medical gold & rdquo; these three words replaced by "Romantic Doctor Master Gold". Obviously, if one change is quite troublesome and inefficient, it is necessary to adopt a batch method.

Open Notepad to write content, where the path is saved to the variable $Path (have to be saved to this directory every time you download a new episode, so this variable does not need to be changed), $Filter saves the filter for variables (For example, *.mkv written here, ie: all mkv video files), $oldtext is the original file name keyword (Lang Zhijin), and $newtext indicates the keyword to be replaced (Romantic Doctor Master).

The following statement is probably translate: ls mean getting directory, $ Path is to get back to keep the directory within the variable (this variable is what it said above, save the file in the directory? ), the parameter -Include means to include, keep up with the $Filter variable (yes, the $Filter variable holds the condition to be filtered, ie *.mkv), and then through the pipeline processing "ldquo;

Copyright © Windows knowledge All Rights Reserved