X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <41E81320.609028BD@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: intdos question References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 29 Date: Fri, 14 Jan 2005 18:57:24 GMT NNTP-Posting-Host: 12.76.140.141 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1105729044 12.76.140.141 (Fri, 14 Jan 2005 18:57:24 GMT) NNTP-Posting-Date: Fri, 14 Jan 2005 18:57:24 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Mike C wrote: > > Can somebody please point me in the right direction? > > I have written a parser, which parses a source file and creates a > destination file. > > To operate the program, I select the source file in Windows explorer and > drag it onto a shortcut to my program. This leaves the path to the source > file in argv[1]. My problem is that the string that I find in argv[1] is > all in DOS 8.3 format. I would like to name the destination file the same > as the source file, with a long filename, changing only the extension. ... snip ... I think you are barking firmly up the wrong tree. The point is "why does the drag and drop leave a short file name". There is no need for your program to incorporate all sorts of non-standard and non-portable code if you can solve that. I hate mice and windoze, so I don't have the answer. You should be able to run your program from the command line by simply giving it the appropriate argument. -- "If you want to post a followup via groups.google.com, don't use the broken "Reply" link at the bottom of the article. Click on "show options" at the top of the article, then click on the "Reply" at the bottom of the article headers." - Keith Thompson