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?
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;
EngAMoktar
08-02-2008, 11:45 AM
ofcorse it help ,, thanx alot for your help
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.