Topic
  • 2 replies
  • Latest Post - ‏2014-04-15T06:47:01Z by Molgy
Molgy
Molgy
14 Posts

Pinned topic How do I get the file info from a Windows file?

‏2014-04-14T13:50:55Z |

Hallo,

does anyone know, how I get the timestamp from a file on the windows platform via Stat ?

Rgds STB

  • llandale
    llandale
    3035 Posts
    ACCEPTED ANSWER

    Re: How do I get the file info from a Windows file?

    ‏2014-04-14T17:47:14Z  

    Look for "Stat" in the DXL manual, found in section "Operating system commands".  I don 't do it, but perhaps it looks like this:

    • string NameFile = "c:/Whereever/Whaterver/File.txt"
    • Stat stt = create(NameFile)
    • print (modified(stt)) "\t" NameFile
    • delete(stt)

    -Louie

  • llandale
    llandale
    3035 Posts

    Re: How do I get the file info from a Windows file?

    ‏2014-04-14T17:47:14Z  

    Look for "Stat" in the DXL manual, found in section "Operating system commands".  I don 't do it, but perhaps it looks like this:

    • string NameFile = "c:/Whereever/Whaterver/File.txt"
    • Stat stt = create(NameFile)
    • print (modified(stt)) "\t" NameFile
    • delete(stt)

    -Louie

  • Molgy
    Molgy
    14 Posts

    Re: How do I get the file info from a Windows file?

    ‏2014-04-15T06:47:01Z  
    • llandale
    • ‏2014-04-14T17:47:14Z

    Look for "Stat" in the DXL manual, found in section "Operating system commands".  I don 't do it, but perhaps it looks like this:

    • string NameFile = "c:/Whereever/Whaterver/File.txt"
    • Stat stt = create(NameFile)
    • print (modified(stt)) "\t" NameFile
    • delete(stt)

    -Louie

    Thank you.