LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically change the date of a file

Is there a way to 'touch' all, or selected, files in a directory in LV?  That is, change the 'modified' date of desired files to the current date.
0 Kudos
Message 1 of 8
(3,432 Views)
Seems like you should be able to use the "Set Property.vi" to change the date value of the file in question.
Message 2 of 8
(3,412 Views)
Thanks for the reply.  I should have been more specific.  That method will only work for VIs.  I want to be able to change the modification date(s) for ANY type of file.
0 Kudos
Message 3 of 8
(3,401 Views)
There's a VI called File Info available from OpenG. It allows you to change the modification date among other things.
0 Kudos
Message 4 of 8
(3,388 Views)
Drat.  I thought it could modify general files as well.  I seem to recall that there is a method for accessing command line tools from within a .vi, but I cannot find it now.
0 Kudos
Message 5 of 8
(3,385 Views)
System Exec will allow you to run a command line program in a vi.  Look in Communications palette for System Exec vi.
- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 8
(3,378 Views)

Dennis,

 

Thanks for the reply.  How do I find and download that file.  Things seem to have changed at OpenG since the last time I visited.

 

Roy

0 Kudos
Message 7 of 8
(3,374 Views)
Download the OpenG Commander. A link is at the bottom of the main screen or go to the products tab.
0 Kudos
Message 8 of 8
(3,370 Views)