Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Detect new files, rename by foldername and copy them

$
0
0

Hello Powershell Experts,

I need to do a special task and guessed powershell is the solution, but i'm completly lost

I have a webcam with motion detection who save the pictures to a folder 00_0000_00. Inside this Folder, the webcam makes a new Folder for every event "001" "002" "003" and so on. I guess if the number 999 is reached it starts with a new folder 00_0000_01.

Inside every Event Folder are 3 JPGs. One is only INFO.jpg with the logo from the webcam, the other 2 are the events picture called E0001.jpg, A0001.jpg, P0001.jpg and so on.

For a software, who show this picture like a theme park picture maker,
i need to copy every single picture (without the info.jpg) in a single folder, renamed like "eventfoldernumber-pictureA.jpg" +"eventfoldernumber-pictureB.jpg).

and i have no clue who to perform this

for every help i am very thankfull!


Viewing all articles
Browse latest Browse all 6937

Trending Articles