🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #309

How to get a actual path of placeholder of %SystemRoot% in Win Vista

#309
From: Liu Shan
Date: Mon, 21 May 2007 02:56
11 lines
1375 bytes
Hi, all,

I'm try to run my app (built in BCB4 and BCB6) in Win VISTA now, it always 
tell me the path wrong, because I got the string 
"%SystemRoot%\System32\xxx.xx", it seems BCB4 or BCB6 cannot translate 
%SystemRoot% to actual path, but the same app run in WinXP, Win2000 have no 
this problem, it can get, for example, "c:\WINNT\System32\xxx.xx".

How to solve this problem?

Very Thanks
Technical Details
Message-ID: <46510a0b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,7f767fab9079e852,start
X-Google-Attributes: gid10529a,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Liu Shan" <liushan@ps-electronic.com>
From: "Liu Shan" <liushan@ps-electronic.com>
Newsgroups: borland.public.cppbuilder.upgrade
Subject: How to get a actual path of placeholder of %SystemRoot% in Win Vista
Date: Mon, 21 May 2007 10:56:00 +0800
Lines: 13
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 58.185.69.2
Message-ID: <46510a0b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1179716107 58.185.69.2 (20 May 2007 19:55:07 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail