Script check file date modified


















Up Down I'll give it a try. Please log in or register to enter your reply. Knowledge Base Join us Login. What is this? Learn more. Free Download. Hi, I would like to monitor with prtg two different files in two different locations.

Thanks R. Votes: 0 Your Vote: Up Down. Hi, you might use the File Sensor for this purpose and then set limits on channel Last modified. Add comment. Thanks, Is it also possible to compare the last modified date on both files en set a trigger when difference is 15 seconds or more? This would basically be possible using the Sensor Factory Sensor but as the scans of the both sensors will most likely not happen at exactly the same time Factory Sensor might give you incorrect results.

Thank you very much. Create a package-scoped SSIS string variable to store the actual date that your target file was last modified. Update : I occasionally get emails from people stuck at Step 3. Normally this is because they haven't placed the code above in the correct place.

It is important that the code block above be placed inside the ScriptMain class. Additionally, if you have SSIS configured to use Visual Basic as the default programming language for scripts, then the ScriptMain class will also already have a public subroutine called Main. You will know because the first line from the code block above will already be there. Wednesday, April 6, AM. Yeah i tried that but cant get it to work. I am new to VB scripting can u provide me with step b y step to implement the script task for this?

Arthur My Blog. Failure; else Dts. Tuesday, April 5, AM. LastWriteTime Dts. Item "User::Variable". LastWriteTime '''. ToShortDateString Dts. Success Else Dts. Tuesday, April 5, PM.



0コメント

  • 1000 / 1000