Here's where I'm at:
WMIC FSDIR get lastmodified, Name='C:\\file.ini'

The error is "Invalid GET Expression."

That doesn't seem to work...  I have a feeling it's the order I'm trying to do it in.  I haven't tried it in KACE yet, because I get an error when I try it in the command line manually.  Eventually I want to drop it into a:

ShellCommandTextReturn()

Any help would be greatly appreciated.
Thanks!
awingren

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0

I was overthinking it!  I figured it out:

FileInfoReturn(C:\file.ini, modification_time, DATE)

Answered 02/17/2014 by: awingren
Eighth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share