I know there are several questions and answers about this - I tried them all - none of them worked for me.
How do I do the equivalent of this (which works in cmd) in a PowerShell command?
for %f in (*.mp4) do "C:\Program Files\DVR-Scan\dvr-scan.exe" -i %f -d events/ -tc
I tried this:
Get-ChildItem -File | Foreach {"C:\Program Files\DVR-Scan\dvr-scan.exe" -i $_.fullname -d events/ -tc }
And like this:
Get-ChildItem -File | Foreach {"C:\Program Files\DVR-Scan\dvr-scan.exe -i $_.fullname -d events/ -tc "}
And like this:
ls -file | & { "C:\Program Files\DVR-Scan\dvr-scan.exe -i $_.fullname -d events/ -tc " }
So what's the right way to do it?
EDIT: This question is not a duplicate of this one. In the other question they are asking about the equivalent of a Bash command. I am asking about the equivalent of a cmd command. Even if the answers are the same, it is not the same question.