Solved

Checking if directory exists, and creating a directory

Posted on 2002-07-29
3
260 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
Comment Utility
DirectoryExists and ForceDirectories.
0
 
LVL 12

Expert Comment

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

Author Comment

by:chmod101
Comment Utility
Thanks for the help, guys.

chmod101
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now