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

Deleting files with same filename but different extension

$
0
0

Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

        I am new to PS scripting and would like to do the following:       

           I take RAW+JPEG images and put them into two folders, one having raw image files and the other having the corresponding JPEG images.  The corresponding images have the same file name but with a different extension (e.g. …/RAW/IMG_0001.CR2 and …/JPEG/IMG_0001.jpg).  I examine the images in the JPEG folder and delete all images I do not want to keep.  What PS command would I use to delete the corresponding images in the RAW folder?

      Thanks... John
Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles