Could you help me on building a Powershell script to do the following?
In a certain folder structure check if the "Old projects" exists and if it is not empty tell the user of the script how many files and folders are in it.
Example:
F:\Project DATA\Customer A\Projects\Old projects
The customer name (in this example Customer A) is different all the time, the Projects and "Old projects" folders however are in the same folder everytime. For some customers there is no "Old projects" folder, so the script needs the check if the folder exists first.
With Get-ChildItem I'm also getting errors that only 260 characters in the pathname are supported. What I'm looking for is a script that goes through all subdirectories, find the "Old projects" folders, check if the folder contains data and report which folders contains data to the user.
Hope you can help me on the right track with this ;)