Is it possible to get a file's timestamp from within mel in windows?
I'm using fileList to return lists of files, but can't find anything in the maya doc to get a timestamp.

  • created

    Jun '12
  • last reply

    Jun '12
  • 1

    reply

  • 2.6k

    views

  • 1

    user

I found a way, if anyone needs.  clunky but works.

string $str = system ("dir " + $filepath);
string $date = match "../../...." $str;
string $time = match "..:.. [AP]M" $str;   //$time = "11:15 AM";

you can then reformat date and time at your leisure using string functions....

Suggested Topics

Want to read more? Browse other topics in Maya or view latest topics.