02-24-2010 03:46 PM
Hello,
Is there a way that a Labview program can display the date of the exe and display it on the front panel? I am aware of the version info on the application builder, but I did not see a way to get the date when the exe was created.
02-24-2010 05:10 PM - edited 02-24-2010 05:12 PM
Hi
You could use File/Directory Info function in your code like this
cheers
David
02-25-2010 06:51 AM
Hello,
Thanks for getting back to me. The lab that I work in uses exe files for the test programs. So the code above will give me the information for the main vi of the program, which is not the exe file. If I have to update a sub-vi because of a feature in the code, I will have to create a new exe with the application builder to incorporate the change but the main calling vi will remain unchanged. Maybe I am missing something here, but it looks like the code above will not work for me.
Thanks again for getting back to me.
02-25-2010 07:17 AM
Hi,
No, it is the date of the exe file.
Lets say I called it Main.vi. I then built this into Main.exe. So I run the exe and Current VI path returns c:\Main.exe\Main.vi. App.Kind tells me that this is an executable so so I strip the path to leave c:\Main.exe. I feed this path to File Directory Info as above.
Why dont you give it a try to see how it works? Build an exe, run it, look at the timestamp. Rebuild the exe run it and check the timestamp again. It will be different. I did not change Main.vi between builds.
I may be misunderstanding your requirement.
David
02-25-2010 07:22 AM
Hello.
Ok...I will try this and get back to you. thank you!
02-25-2010 10:41 AM
02-25-2010 10:49 AM
Yep, I wasn't sure if the OP was talking about the exe's he was calling from some sort of test execution sequence engine either, but as you say its very simple to get the date of of the individual exe.
I am sure Kaspar will let us know more when he gets the time.
David
03-29-2010 10:55 AM
Hello,
I am able to get the date of the exe, I am a happy camper! Thanks for your help!