Message-ID: From: "Shete, Bahubali (icd) USX" To: "'djgpp AT delorie DOT com'" Subject: DJGPP Library function System(); problem under WIN NT Date: Fri, 13 Jun 2003 10:13:27 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Hi, I have a DOS utility which was originally built under TC on DOS. Recently we moved over to DJGPP (GCC under DOS). I have 2 problems: 1. the tmpnam() function with DJGPP returns filenames with '/' as separators in the path for the temp. file name. Where as DOS doesn't like it. 2. Once I changed all the '/' to '\' then, I have another problem. With these temp file names, I do a sorting using DOS sort.exe via system() function call to DOS shell. This works fine under WIN 2000. But fails under WIN NT. I tried to play with the _system_flags bits in stdlib.h. But could not get it to work. Any clues? Bahubali Shete,