Page 1 of 1

Convert Many Multipage DCX files to TIF

Posted: Mon Jan 18, 2010 12:58 am
by rgp
Hi, I'm new to using this program and even after searching this forum can't find out how to convert a directory full of multipage DCX files to multipage TIF files while keeping the output filename the same as the source filename, e.g. 1998-10.DCX to 1998-10.TIF

I placed nconvert into the directory of files I'm needing to convert and then in the cmd window in that directory, I'm typing:
nconvert -v -in -1 -xall -multi -out tiff -o *.tif *.dcx

This gives me an Error: Can't create file (*.tif)

What does the command line need to look like for this to work?

Thanks.

Re: Convert Many Multipage DCX files to TIF

Posted: Mon Jan 18, 2010 7:45 am
by xnview
nconvert -v -in -1 -xall -multi -out tiff -o $.tif *.dcx

Re: Convert Many Multipage DCX files to TIF

Posted: Mon Jan 18, 2010 5:50 pm
by rgp
Thanks for the quick response Pierre.

I tried your suggestion and it created only one TIF file that had all the DCX files combined into it. The TIF file also had a blank file name.

I would rather have it create one TIF file for each DCX file so that the filenames would be the same, but with the proper file extension.

I'm not sure this matters for executing the command line function, but I'm using Windows Vista Home Premium SP2 64-bit

Thanks!

Re: Convert Many Multipage DCX files to TIF

Posted: Tue Jan 19, 2010 2:44 am
by xnview
Try

Code: Select all

nconvert -v -in -1 -out tiff -o $.tif *.dcx

Re: Convert Many Multipage DCX files to TIF

Posted: Tue Jan 19, 2010 4:38 am
by rgp
Thanks again. But I'm obviously missing something. Once I saw that you put the same command line in a different format, I assumed that you were wanting the command line in some type of batch or script file.

I searched the forum for more information and couldn't come up with anything useful. I then tried adding the command line to a .bat file as well as a .vbs file. I tried both with and without the code: select all statement and none of them worked.

Sorry, but what am I doing wrong?

Re: Convert Many Multipage DCX files to TIF

Posted: Wed Jan 20, 2010 8:48 am
by xnview
What's happened with:
nconvert -v -in -1 -out tiff -o $.tif *.dcx

Re: Convert Many Multipage DCX files to TIF

Posted: Wed Jan 20, 2010 1:41 pm
by rgp
Oh right sorry.

When I tried these parameters both in a command line and in a .bat file, it shows that it coverts all of the DCX files to TIF, but it creates one TIF output file with a blank name again. The difference with this output TIF file though from our earlier command parameters is that it only has the first page of the last file it converted.

Trying it as a .VBS gave me a MS VBScript compilation error: Syntax error.

Re: Convert Many Multipage DCX files to TIF

Posted: Wed Jan 20, 2010 6:38 pm
by xnview
Sorry but i don't understand, the command line works?

Re: Convert Many Multipage DCX files to TIF

Posted: Wed Jan 20, 2010 11:35 pm
by rgp
No, sorry this command line didn't accomplish the task at hand either.

I'm wanting to have nconvert convert every multipage DCX file in the directory to a an equivalent multipage TIF file that has the same file name (with the proper extension). So if I have 100 unique DCX files in a directory, I am trying to find the right way to enter the command so that I'll end up in the end with an additional 100 identically named TIF files in the directory - leaving 200 files then in the directory.

As an example, nconvert would run in the directory and convert: P-99-01-21.DCX into P-99-01-21.TIF and continue until all DCX had an equivalent TIF file in the directory as well. Once I spot check that the files converted appropriately, I would then delete the original DCX files.

Re: Convert Many Multipage DCX files to TIF

Posted: Fri Jan 22, 2010 4:44 pm
by xnview
Ok, it's a limitation. You must use a for sequence and use:
nconvert -v -xall -multi -out tiff -o file.tif file.dcx

Re: Convert Many Multipage DCX files to TIF

Posted: Thu Jan 28, 2010 2:32 am
by rgp
O.K. Pierre. Thanks for the help.