Solved

Checking if directory exists, and creating a directory

Posted on 2002-07-29
3
272 Views
Last Modified: 2008-02-26
Alright, if the user types in the name of a directory to be created (usrDir), how do I check to see if usrDir exists, and if it does not, create it?

Thanks for the help,
chmod101
0
Comment
Question by:chmod101
3 Comments
 
LVL 11

Accepted Solution

by:
robert_marquardt earned 50 total points
ID: 7185286
DirectoryExists and ForceDirectories.
0
 
LVL 12

Expert Comment

by:Lee_Nover
ID: 7185501
and add FileCtrl unit to the uses clause to use those functions :)
0
 

Author Comment

by:chmod101
ID: 7185620
Thanks for the help, guys.

chmod101
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question