in reply to Re^2: Moving files to subfolders based on their last modified date
in thread Moving files to subfolders based on their last modified date

one of your suggestions was written wrong

No, it is not written wrong.    Did you actually try it?

$ perl -le' $year = 111; $mon = 7; $outdir = "_" . ($year+=1900) . "\\" . ($mon+=1) . "\\"; print $outdir; ' _2011\8\ $ perl -le' $year = 111; $mon = 7; $outdir = "_" . ($year+1900) . "\\" . ($mon+1) . "\\"; print $outdir; ' _2011\8\

It produces the result that you require.

  • Comment on Re^3: Moving files to subfolders based on their last modified date
  • Download Code