LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change file modification time?

I'm looking for a way to set file last modification time.
Anyone can help?
0 Kudos
Message 1 of 4
(3,313 Views)
You can call the GNU Win32 utility touch.exe from unxutils.sourceforge.net (GNU license applies).

Last year I wired up a primitive demo (LabVIEW 7.0), see attached. Modify as needed.
Message 2 of 4
(3,306 Views)
I'm no big friend of calling external programms,
but it seems that it will be the only solution.

Thank you!
0 Kudos
Message 3 of 4
(3,301 Views)


@CleanerTM wrote:
I'm no big friend of calling external programms,
but it seems that it will be the only solution.

Thank you!




Not really. The newest lib_file package from the OpenG Toolkit http://sourceforge.net/projects/opengtoolkit/ has a (now) working function to call a documented LabVIEW manager function to change among other things the modification time of a file. It would be a wise choice to actually use the 'get' method first and then change the value you want to modify in the cluster and call the 'set' method then.

You can download the OpenG package directly from above mentioned link but I would recommend to first get the OpenG Commander from http://prdownloads.sourceforge.net/ogpm/openg_commander-2.0-alpha3.zip?download and after installing that one you can run it and download all the OpenG packages directly from within.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 4 of 4
(3,294 Views)