🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #9209

Re: CmdLine ParamStr and Folder Shell command parameters

#9209
From: Bob Gonder
Date: Sun, 25 Jul 2004 01:16
20 lines
1860 bytes
Ian Robertson wrote:

>I am now getting the path from %1 - I have another problem now that is
>driving me mad
>
>the path is in the format "G:\Music\MP3's\MP3 DVD24\McFly\Room On The 3rd
>Floor" to correctly use this as a valid path it needs to be
>
>"G:\\Music\\MP3's\\MP3 DVD24\\McFly\\Room On The 3rd Floor"
>
>I am having no luck changing the single \ into double \\
>
>any ideas? this should be this function completed if I can crack this last
>bit

No, you don't need to do that.
You only need to have the \\ in your source code.  The compiler
changes them to \ at compile time, so at runtime, they are all \, and
you are reading the path from the O\S at run time, so everything is
fine.
Technical Details
Message-ID: <4b26g01gb3leepf0ol6oe4cehc9pge3hch@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <410229eb$1@newsgroups.borland.com> <iqv4g05vsc1oo5mqgcg3bb2o97cu89vsc2@4ax.com> <410294dc$1@newsgroups.borland.com> <vd55g0dg823g17eu48b42e00ao1ev1p2fo@4ax.com> <4102b9d6@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,69b2a3e1b54fedf3
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: CmdLine ParamStr and Folder Shell command parameters
Date: Sat, 24 Jul 2004 18:16:42 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <4b26g01gb3leepf0ol6oe4cehc9pge3hch@4ax.com>
References: <410229eb$1@newsgroups.borland.com> <iqv4g05vsc1oo5mqgcg3bb2o97cu89vsc2@4ax.com> <410294dc$1@newsgroups.borland.com> <vd55g0dg823g17eu48b42e00ao1ev1p2fo@4ax.com> <4102b9d6@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.245.150
X-Trace: newsgroups.borland.com 1090718199 69.69.245.150 (24 Jul 2004 18:16:39 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail