RePost: Help to convert a code to D
Era Scarecrow
rtcvb32 at yahoo.com
Mon Aug 26 14:43:18 PDT 2013
I wonder if any of this would make any more sense if you threw
it through Google translate.. (maybe the comments and months?)
On Monday, 26 August 2013 at 20:14:34 UTC, Andre Artus wrote:
> Hi Alexandre,
>
> Would you mind explaining in English what it is that you would
> like to achieve. I cannot read [what I assume is] Portuguese,
> but if you can explain what you want I will try my best to help.
From what I can tell he's making a directory either per day of
the month, or per month, then moving all files last
created/modified to those directories.
On Monday, 26 August 2013 at 13:30:38 UTC, Alexandre wrote:
> foreach (var fi in files)
> {
> var mes = fi.CreationTime.Month;
> var strdt =
> fi.CreationTime.ToString("dd-MM-yyyy");
>
> string DestDir = DirReceb + MesesDoAno[mes
> -
> 1] + "\\" + strdt + "\\" + fi.Name;
>
> File.Move(fi.Name, DestDir);
> }
> }
> }
> }
More information about the Digitalmars-d-learn
mailing list