• Create Account

### #Actualbelfegor

Posted 20 December 2012 - 12:34 PM

I downloaded nvidia texture tools command line utilites to be able to convert some textures to "bump maps". The problem is that it will take to long to do it by hand for all images, so i tried to automate it with bat, but my knowledge for command line sintaks is limited:

for %%X in (*.dds) do nvcompress -tonormal %%X %%X_bump.dds

Last parameter is out file name.

If i have input images in that directory:
Image1.dds
Image2.dds
Image3.dds


Output will be:
Image1.dds_bump.dds
Image2.dds_bump.dds
Image3.dds_bump.dds


But i want to remove first extension so that output would be:
Image1_bump.dds
Image2_bump.dds
Image3_bump.dds


Help.

EDIT: Solved. Last param should be:
%%~nX_bump.dds


### #2belfegor

Posted 20 December 2012 - 12:10 PM

I downloaded nvidia texture tools command line utilites to be able to convert some textures to "bump maps". The problem is that it will take to long to do it by hand for all images, so i tried to automate it with bat, but my knowledge for command line sintaks is limited:

for %%X in (*.dds) do nvcompress -tonormal %%X %%X_bump.dds

Last parameter is out file name.

If i have input images in that directory:
Image1.dds
Image2.dds
Image3.dds


Output will be:
Image1.dds_bump.dds
Image2.dds_bump.dds
Image3.dds_bump.dds


But i want to remove first extension so that output would be:
Image1_bump.dds
Image2_bump.dds
Image3_bump.dds


Help.

### #1belfegor

Posted 20 December 2012 - 12:09 PM

I downloaded nvidia texture tools command line utilites to be able to convert some textures to "bump maps". The problem is that it will take to long to do it by hand for all images, so i tried to automate it with bat, but my knowledge for command line sintaks is limited:

for %%X in (*.dds) do nvcompress -tonormal %%X %%X_bump.dds

Last parameter is out file name.

If i have input images in that directory:
Image1.dds
Image2.dds
Image3.dds
[code]

Output will be:
[code]
Image1.dds_bump.dds
Image2.dds_bump.dds
Image3.dds_bump.dds
[/code]

But i want to remove first extension so that output would be:
[code]
Image1_bump.dds
Image2_bump.dds
Image3_bump.dds


Help.