- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 536.4K On-Premises Infrastructure
- 138.3K Analytics Software
- 38.6K Application Development Software
- 5.8K Cloud Platform
- 109.5K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.3K Integration
- 41.6K Security Software
How do you query for File Properties in Windows?
We are trying to figure out a way of using an OS command within Oracle Data Integrator 188.8.131.52 to query an XML file attribute specifically the Date Modified.
We have an application that outputs an XML file with the same name so we are trying to build out an integration process to pull from the XML file when it is updated. The file exists on Windows Server 2012, but I am not finding much luck on a way of getting the Date Modified field of file properties.
The thought is we would load a variable with the initial date when executing for the first time (OldDate variable), then have a Package that checks the current date modified (loads to a variable CurDate), and if the CurDate > OldDate the integration process would take the XML file data and do a conversion to a SQL Server database for another application to read.
I know if the file included a date/timestamp we could us an ODI Variable to parse the file name as a string to derive the date/timestamp, but that isn't an option in this case.
Any ideas on this?