Article View: borland.public.cppbuilder.nativeapi
Article #450Re: Delete File
From: Alan Bellingham
Date: Thu, 17 Apr 2008 07:54
Date: Thu, 17 Apr 2008 07:54
22 lines
1545 bytes
1545 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote:
>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.
... and any program using the old, old paradigm of keeping everything in
one place.
Alan Bellingham
--
Team Browns
<url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions
<url:http://www.borland.com/newsgroups/netiquette.html> netiquette
Technical Details
Message-ID:
<jg0e04hpe3kpgjk1j6c4c8jab57h6nd7fp@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeeder.dynfx.net!weretis.net!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<480642de@newsgroups.borland.com> <i7id04173bdvc106ehdghd6sg7f137ngkf@4ax.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: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Delete File Date: Thu, 17 Apr 2008 08:54:29 +0100 Reply-To: alanb@episys.com Message-ID: <jg0e04hpe3kpgjk1j6c4c8jab57h6nd7fp@4ax.com> References: <480642de@newsgroups.borland.com> <i7id04173bdvc106ehdghd6sg7f137ngkf@4ax.com> X-Newsreader: Forte Agent 4.2/32.1118 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.49.31.105 X-Trace: newsgroups.borland.com 1208418903 62.49.31.105 (17 Apr 2008 00:55:03 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeeder.dynfx.net!weretis.net!news.isoc.lu!newsgroups.borland.com!not-for-mail