ForceDirectories (C++)
Description
This example uses a label and a button on a form. When you click the button, all the directories along the specified path that do not exist are created. The results are reported in the caption of the label.
Code
void __fastcall TForm1::Button1Click(TObject *Sender)
{
String Dir = L"C:\\Apps\\Sales\\ઘ૯યજ";
if (ForceDirectories(Dir))
Label1->Caption = Dir + " was created";
}
Uses
- System.SysUtils.ForceDirectories ( fr | de | ja )