aa2zz6 Posted December 2, 2022 Share Posted December 2, 2022 Is there a way I can update/modify existing time records in my INI file? The idea is to have my INI file update times when a script runs throughout the working day. I wasn't sure if there is a one-liner code I could use to access the INI file, find the AGOL_Last_Published or AC_Last_Published values and modify the times with a current one. The timestamps won't be the same for each value since scripts run at different intervals throughout the day. -INI Record [GIS_Record] Run__ArcGIS_Online_Updates=True AGOL_Last_Published=06:02:48 <<---- Run__AC_Inspections_Updates=True AC_Last_Published=08:02:48 <<----- Link to comment Share on other sites More sharing options...
Solution Nine Posted December 2, 2022 Solution Share Posted December 2, 2022 One-liner ? Why do you need to read the current value in the first place ? Juste update the time with IniWrite...there goes your one-liner aa2zz6 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
aa2zz6 Posted December 2, 2022 Author Share Posted December 2, 2022 31 minutes ago, Nine said: One-liner ? Why do you need to read the current value in the first place ? Juste update the time with IniWrite...there goes your one-liner Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now