I started script with
Code: Select all
powershell script.ps1 \Path\to\tiffs
isscript.ps1
Code: Select all
$path=$args[0]
$File = dir $path\*.tif | foreach {$_.name}
$File | Out-File debug.txt
nconvert.exe -overwrite -o binder.tiff -multi -out tiff -c 7 -l $File
Start-Sleep 100
and I get binder.tiff without first file of list.Error: Can't open file (II*)
Why nconvert does not get the first file of list? It does happen with any first file!
I use
Code: Select all
** NCONVERT v7.25 (c) 1991-2019 Pierre-E Gougelet (Jan 15 2019/12:05:55) **
Version for Windows Xp/Vista/7 x64 (All rights reserved)
** This is freeware software (for non-commercial use)
Code: Select all
Windows 10 x64 Pro 1809
write list into debug.txt in utf-16 encoding. May be, the problem is in the encoding of list?$File | Out-File debug.txt