Use Of Wildcards

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
Lif3styl3
Posts: 1
Joined: Mon Jan 25, 2010 9:16 pm

Use Of Wildcards

Post by Lif3styl3 »

I have problems using a wildcard, while filtering the input files.


i would like to filter the files which has got spaces in their path.

Regarding to the Dos Syntax i need to escape the path ("my dir").

so i tried something like "c:\my dir\sdf sd"*.png, but nconvert could not find the requested files.
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Use Of Wildcards

Post by xnview »

Lif3styl3 wrote:so i tried something like "c:\my dir\sdf sd"*.png, but nconvert could not find the requested files.
Yes this can't be expanded correctly...
Pierre.
Pavel Chysky
Posts: 1
Joined: Tue Apr 20, 2010 10:37 am

Re: Use Of Wildcards

Post by Pavel Chysky »

Nconvert.exe knows wildcards, but without quotations only, or knows quotations, but without wildcards only:
c:\mydir\sdf sd*.png - OK
"c:\my dir\sdf sd.png" - OK
"c:\my dir\sdf sd".png - OK
"c:\my dir\sdf sd*.png" - failed
"c:\my dir\sdf s"d*.png - failed

It seems the only way to workaround for spaces in path is:
CD /D "c:\my dir" (or simply CD /D c:\my dir - CD has not space as separator)
nconvert.exe -xxx sdf*.png

but nconvert.exe -xxx sdf sd*.png still failed
Any suggestion for spaces in filename?
Post Reply