Hi Ong,
this is the routine I use in my programs.
Given to the public domain hereby
-----------------------------------------------------------
Function  verifyPath(const Path : String;DoCreatePaths:Boolean):boolean;
Begin
     Result := DirectoryExists(Path);
     If Not Result and DoCreatePaths then
     begin
          MakeDir(Path);
          Result := DirectoryExists(Path);
     end;
     Assert(Result,'Der Pfad '''+Path+''' existiert nicht!');
End;

-------------------------------------------------------------------------------------------
Happy coding
Bob

>      
>     Before my application start running, i want my application to check if a 
> folder is exists in C:\ drive or not. If not then i want to create it (let's 
> say the folder name is 
>     'MyFolder') ... Is there any way for me to do this ? Thanks.
>      
>     Regards : 
>     Ong



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to