1.

Solve : how to get file extension from a file name?

Answer»

hi all,

how to get a file extension from a file name.requirement is like if i give a file name it should search the file and returns the file extension.how to code it?plz help me as i am new to scripting.

ThanxWelcome to CH.

What programming language would you like this to be and what OS are you USING?Code: [Select]For /F %%a In ('dir /A-D /B') Do (
echo %%~xa
)Quote from: CARBON Dudeoxide on May 31, 2007, 11:50:43 PM

Welcome to CH.

What programming language would you like this to be and what OS are you using?

I want to create a BATCH file for this.My OS is win2000.is this being set for homework somewhere this week? It sure is cropping up all over the place!


Discussion

No Comment Found