This is my code and it doesn't work:
$brisanje=dat.txt, dat2.txt
Remove-Item $brisanje
The error that I get here is
Remove-Item : Cannot find path 'C:\Users\stefan\Desktop\brisanjedat\dat.txt, dat2.txt' because it does not exist.
But when I write it like this it works like a charm:
Remove-Item dat.txt, dat2.txt
I've been stuck with this problem for hours, any solutions?
$brisanje="dat.txt","dat2.txt"