I have a friend with a video on my computer. The path is
C:\Users\Me\Videos\Tonys Videos\Dinosaur [1080p]\
In the Dinosaur movie folder is an "asset" folder, which contains a few .gif,.jpg and .png files. I wanted to learn a little bit about Powershell so I changed the directory with...
cd "C:\Users\Me\Videos\Tonys Videos\Dinosaur ``[1080p``]\assets"
The (`) was needed for the special bracket characters & the quotations for the space in the folder named "Tonys Videos". I can type in Get-ChildItem & the entire list will populate just fine, but I run into errors when I attempt to use the exclude flag (whether a single or multiple strings are "excluded" it still shows no output.
I ran another test, where I copied the "assets" folder to "Tonys Videos" (so the grave-accent would be omitted and everything ran just fine. I'm using PS v2.0 but that really shouldn't change much. My question is why didn't the "Get-ChildItem -exclude" work with the grave accents?
In response to the comment, this is my attempt with Get-ChildItem
Get-ChildItem "C:\Users\Me\Videos\Tonys Videos\Dinosaur ``[1080p``]\assets" -Exclude *.jpg,*png
I have tested this same format (as stated above) in the "Tonys Videos" folder and it worked just fine. Thanks for your continued assistance.