Nicktab
May 25, 2023Copper Contributor
wordconv - unable to exclude .docx
Hello everyone,
below you can find my script. i can't exclude .docx. I tried without wipe whereobject etc or with it, but anyway, .docx are still in the variable $FILEDOC .... i'm missing something but i can't figured out it
Can you help me please?
$LOGPATH= "C:\dir\logword.txt"
$PERCORSO = Read-Host "where are .doc?"
$FILEDOC = Get-ChildItem -LiteralPath "$PERCORSO" -name -File -Filter *.doc | Where-Object fullname -NotLike "*.docx"