Solved

How to create directories?

Posted on 1997-05-09
2
161 Views
Last Modified: 2010-04-06
How can I create directory like:
C:\PROGS\WIN95\INTERNET
If I only have C:\PROGS
So I want to create all those directories that don't excist.
Is there any easy way?

ToniTOP
0
Comment
Question by:tonitop
2 Comments
 
LVL 2

Accepted Solution

by:
javiertb earned 50 total points
ID: 1336033
You have to do this:

CreateDir('C:\PROGS\WIN95');
CreateDir('C:\PROGS\WIN95\INTERNET');

This will work.
0
 
LVL 2

Expert Comment

by:gysbert1
ID: 1336034
This is definately better !

Use ForceDirectories(MyDirectory);

This will create them all in one go.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Delphi TcxGrid group footer summary 3 314
Newbie Thread Programming 1 161
LAN or WAN ? 11 95
How to load 2 images in same column in Delphi 2 57
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

807 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