+1  A: 

I believe this can be done, but it's tricky as it requires delving into hairy Win32 API calls. It will be much easier to simply recompile using a modern compiler -- is there any reason why this can't be done?

Here are links to two free, high quality C/C++ compilers that will have no trouble with long filenames: Microsoft Visual C++ Express Edition; MinGW.

j_random_hacker
ok thank you again. But still I cant install softwares on my own on an office PC. So I am sticking to what my office administrator installed ie "Turbo C". I will see other options also .. But still if you have any method please inform me. Thank you once again
Manoj Doubts
+2  A: 

Alright, here's the page describing the Win32 function you'll need to call:

GetShortPathName Function

You'll need to #include <windows.h> at the top of your program, and probably jump through a bunch more hoops to get this to compile on such an old compiler (maybe Turbo C didn't even ship with Windows headers?) Good luck!

j_random_hacker
+1  A: 

You can also use dir /x to get short file names from the command line

dmityugov
ya but you should hav seen the old question for which this question is follow up. I already got this answer for that question. Now my question is how to get it inside a program at runtime with the user supplied file name.
Manoj Doubts
Nevertheless it's a useful approach -- it's possible that running system("dir /x myfile.tttc > temp") and parsing temp is easier than calling GetShortPathName()!
j_random_hacker