🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Application directory

#497
From: bar
Date: Tue, 18 Mar 2008 17:27
17 lines
1461 bytes
Hi friends.

I want to create a directory that my application uses. Now i am creating the 
directory in the Application Folder where the program is installed.

String InstallationPath = ExtractFilePath(Application->ExeName);
String CustomDirectory = InstallationPath + "\\data";

    if(!DirectoryExists("Installation Path\\data"))
        CreateDir(CustomDirectory);

1.How can i stop the user from Opening and Deleting this "data"folder.
2.Can i make the directory only for my application.

All help greatly appreciated.
Thanks
SA
Technical Details
Message-ID: <47dffb86@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!newsfeed.freenet.de!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: 10cc67,f72145dd3e80e9f,start
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "bar" <shaikakbar250281@yahoo.co.in>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Application directory
Date: Tue, 18 Mar 2008 20:27:46 +0300
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.150.204.196
Message-ID: <47dffb86@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1205861254 62.150.204.196 (18 Mar 2008 10:27:34 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail