LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Retainining the original file extension
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, May 24, 2006 5:44:27 AM(UTC)
Groups: Registered
Posts: 3
G'day!
I am using using the LEAD Command Line Utilities with the switch's of /F17 /NOUI. The images that I am converting do not have a .TIF extension, but rather have a .1 or .2 etc... Every time I run the conversion, it renames the file(s) to .1.tif or .2.tif... Is there anyway to have LFC leave the original file extension and not add the .TIF?
Tks,
Dale
#2
Posted
:
Sunday, May 28, 2006 10:01:55 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Currently this feature not supported in the LFC. however I will add it to our feature request list.
Thanks,
Ali Abo Al-Rob
LEADTOOLS Technical Support
#3
Posted
:
Monday, May 29, 2006 12:50:29 AM(UTC)
Groups: Registered, Tech Support
Posts: 46
Dale,
LFC does not have this functionality. However, if you are calling LFC from a batch file running on XP, then you can do something like this: @ECHO OFF
:: Initialise workfile
TYPE NUL>%TEMP%.\_RN.CMD :: Hide self from FOR IN DO scan
attrib +H "%~f0"
FOR %%F IN (*.*) DO CALL :_RENAME "%%F"
attrib -H "%~f0"
:: Execute the REName workfile and delete it
CALL %TEMP%.\_RN.CMD
DEL %TEMP%.\_RN.CMD
GOTO :EOF
:_RENAME
:: Extract each file BaseName and Extension
SET FN=%~n1
SET EXT=%~x1
:: Create RENaming workfile (snipping final 4 chars from BaseName)
ECHO REN "%FN:~0,-1%%EXT:~0,-1%" "%FN:~0,-1%">>%TEMP%.\_RN.CMD
:EOF
Edit by Moderator:
The LFC tool is no longer offered as a stand-alone utility, but its full source code is shipped with the newer versions of LEADTOOLS imaging SDK.Edited by moderator Thursday, October 6, 2016 3:03:55 AM(UTC)
| Reason: Not specified
Gabe
Developer Support
LEAD Technologies, Inc.
#4
Posted
:
Wednesday, May 31, 2006 9:05:36 AM(UTC)
Groups: Registered
Posts: 3
Thanks for the help. I will give it a try.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Retainining the original file extension
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.