Denis
Employer

[no-member:pro]Denis[/no-member:pro]

1 projects
Project parameters
Type of cooperationOne-time project
Prepaymentwithout prepayment
Payment methodsElectronic money
Acceptance of requestsfrom until May 9, 2023
Project description
You need a PowerShell script that will run through the files in the specified folder and rename them according to the given template.

There is a folder that contains aisles with format names:

- System 1. Install monthly updates. February. 2021.docx.

- System 2. Install monthly updates. February. 2021.docx.

And so on.

The file name format is always the same, only changes month and year.

There may also be one (a) nested folder (no folders in the nested folder) that may contain files with the same name.

Example:

- folder 1 (files included)

folder 2 (this folder is in folder 1 and it also has files)

The script should have 3 parameters:

1. Month – given by a string (e.g. March, April), this month is used to form a new name

2. Year - used to form a new

3. Nesting level – what level of nesting to handle from the current folder (for example, one, two folders down from the current one), if 0 then the nested folders do not touch at all, despite the fact that they are and they have files.

The parameters are set directly in the script, not interactively.

The original folder can be in different places, you do not need to get involved in its path, the script should work in the folder from which it was launched.

After running the script in all files of the current folder, as well as files of the nested folder (if the corresponding parameter is specified), the name changes.

For example,

System 1. Install monthly updates. February. 2021.docx.

Stallo

System 1. Install monthly updates. March. 2022.docx.
Project author: [no-member:pro]Denis[/no-member:pro]