From: mapson AT mapson DOT com (Mapson) Newsgroups: comp.os.msdos.djgpp Subject: Changing filenames with DJGPP Date: Mon, 08 Jun 1998 16:44:35 GMT Organization: Yale University Lines: 18 Message-ID: <357c11d7.8501229@news.cis.yale.edu> NNTP-Posting-Host: logan.eng.yale.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I am looking in to making a short DJGPP program to change filenames. A couple of questions first: 1)I'll be changing all filenames to 8.3 style DOS names (xxxxxxxx.xxx), but I'd like to make the program so the input filenames can be long. Can my program simply read the DOS equivelent of the long filenames from a directory for input to my DJGPP program? (i.e. "HELLOW~1.TXT" instead of "HelloWorld.txt")? 2) Are there specific DJGPP commands I should know about for doing this sort of task? I've looked through the libc info a bit, but didn't find anything appropriate. The key thing is that I don't want to simply open a file and copy it to a new name- that would be easy, but I really just want to just change the name. Any tips would be appreciated. Thanks!