Check For File modified date

 3 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Jessi
New Member
Posts: 2
New Member

    I need to access a file in IPA and check for it's last modified date. Based on the modified date I'd perform different options. What's the best way to access the modified date of the file? 

    John Henley
    Posts: 3353
      I think you have to use the System Command node with 'dir /t:W' (if you're on Windows) or 'ls -l' (on Unix) and then parse the output.
      Thanks for using the LawsonGuru.com forums!
      John
      Jessi
      New Member
      Posts: 2
      New Member
        How would you parse out the results?
        John Henley
        Posts: 3353
          You can follow the system command node (e.g. named "sc") with an assign node and read the sc_outputData from the system command node.
          Thanks for using the LawsonGuru.com forums!
          John