-
November 24th, 2012, 03:00 AM
#1
Create directory with date
Goodmorning
I want little help
Code:
AnsiString S=DateToStr(Date());
char *test=S.c_str();
CreateDirectory("c:\\Monday"+test, NULL);
i made the upper code and i want to create a directory with a name of Week and next to it the date. For example will the program
will check the today date from a datetime picker and will create a folder with Day and Date. But i want little help
Last edited by Leite333; November 24th, 2012 at 03:05 AM.
-
November 24th, 2012, 05:17 AM
#2
Re: Create directory with date
Little help goes here: you cannot add char* to string literal. You shoudl use some string class for this operation.
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|