Need a way of version stamping or time stamping hrp file

I have been trying to find a way to get at environment variables (on windows machine running the designer) so I can create a last edited stamp on the file or some other way of automatically labelling each hrp edit.

The ideal use case is to be able to timestamp the last edit of the hrp file so I know if a specific device is up to date. I currently have a label with a manually edited revision number but I always forget to update it,

Thanks
Andy