Article View: borland.public.cppbuilder.nativeapi
Article #10056Re: Temporary File
From: Randel Bjorkquist
Date: Mon, 24 May 2004 16:04
Date: Mon, 24 May 2004 16:04
37 lines
2317 bytes
2317 bytes
Hey Eugene, I just tried what you were sugguesting, but it didn't work. The "Disk Cleanup.exe", skipped right over my file. Also, if I read that attribute correctly, it sounds like it affects where Windows stores the file, in memory, and not sure much as to how Windows sees it. If that makes sense. Also, I actually create the files through the FileString->CopyFrom() function. I do this because the file is stored in a database as a BLOB. So I tried using the full file name, after I created the file, to set the file attribute. The SetFileAttributes call looks like this, "SetFileAttributes(TmpFileName.c_str(), FILE_ATTRIBUTE_TEMPORARY)". I don't know if this is correct, but like I said. I didn't get it to do what I wanted it to. Again, thanks for all your help and if you have more ideas, or corrections for me, please let me know, Randel "Eugene Mayevski [SecureBlackbox]" <mayevski@eldos.org> wrote in message news:40b21989$1@newsgroups.borland.com... > Randel Bjorkquist wrote: > > > Thank you for replying so quickly. I am having a problem finding the > > FILE_ATTRIBUTE_TEMPORARY documentation. > > You should use MSDN and see CreateFile() and SetFileAttributes() description > > -- > Eugene Mayevski > EldoS Corp., CTO > Security and networking solutions > http://www.eldos.com >
Technical Details
Message-ID:
<40b21cf1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40b2105a$1@newsgroups.borland.com> <40b21210@newsgroups.borland.com> <40b216d1@newsgroups.borland.com> <40b21989$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,30cb4b5f364f10fa X-Google-Attributes: gid10cc67,public From: "Randel Bjorkquist" <rbjorkquist@coilcraft.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40b2105a$1@newsgroups.borland.com> <40b21210@newsgroups.borland.com> <40b216d1@newsgroups.borland.com> <40b21989$1@newsgroups.borland.com> Subject: Re: Temporary File Date: Mon, 24 May 2004 11:04:02 -0500 Lines: 39 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 209.172.185.194 Message-ID: <40b21cf1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1085414641 209.172.185.194 (24 May 2004 09:04:01 -0700) Path: arc1-ca.pugleaf.net!controlnews3.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail