PDA

View Full Version : i want a help with a simple scripte Plz .



EngAMoktar
08-02-2008, 07:04 AM
I want to get the date , then creat a new folder , its name be the current date.

that what i made till now

date = System.GetDate(DATE_FMT_US);
Folder.Create("C:\\date");

any ideas?

sue
08-02-2008, 07:09 AM
Give this a try:

day = System.GetDate(DATE_FMT_DAY);
month = System.GetDate(DATE_FMT_MONTH);
year = System.GetDate(DATE_FMT_YEAR);

date = day."."..month.."."..year;

Folder.Create("C:\\"..date);

Hope that helps

Sue

longedge
08-02-2008, 08:51 AM
Nice one Sue but there's a small typo, a missing dot in the concatenation -


date = day.."."..month.."."..year;

sue
08-02-2008, 08:57 AM
Ooops...good catch!!

Sue

EngAMoktar
08-02-2008, 11:45 AM
ofcorse it help ,, thanx alot for your help