Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How do you query for File Properties in Windows?

mfanning2010Mar 30 2018 — edited Apr 3 2018

Hello,

We are trying to figure out a way of using an OS command within Oracle Data Integrator 12.2.1.3 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?

Thank you,

Matthew Fanning

This post has been answered by Adrian_Popescu-Oracle on Mar 30 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2018
Added on Mar 30 2018
6 comments
407 views