Article View: borland.public.cppbuilder.nativeapi
Article #449Re: Delete File
From: Bob Gonder
Date: Thu, 17 Apr 2008 03:56
Date: Thu, 17 Apr 2008 03:56
11 lines
1279 bytes
1279 bytes
bar wrote:
>DeleteFile("C:\\Program Files\\MyProgram\\a.jpg");
>
>The above works in XP. In Vista it doesn't work, the user is administrator.
>How to resolve the issue.
Fairly simple, really...
Don't place any files in the Program Files that you want to delete.
Only viruses and malware try to delete files in there.
Technical Details
Message-ID:
<i7id04173bdvc106ehdghd6sg7f137ngkf@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<480642de@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,afa23fc7a34d3bb6 X-Google-Attributes: gid10cc67,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Delete File Date: Wed, 16 Apr 2008 20:56:39 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <i7id04173bdvc106ehdghd6sg7f137ngkf@4ax.com> References: <480642de@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: 67.77.144.72 X-Trace: newsgroups.borland.com 1208404598 67.77.144.72 (16 Apr 2008 20:56:38 -0700) Lines: 15 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail