Verify that the file "" was modified since ""
There is a verify option in Kscripting that allows you to check the date on a file before continuing.
I've specified the path and name which seems fine but I can't seem to get the script to accept any date I set for the "Modified Since:" field. I get parse errors that look like the following:
2010-07-08 08:36:16 Cached Parse Error changed from 'KBotXMLParser: invalid document (XSD check failed) for 632: BookMaster update Z742AOCP.jwr July 01 2010 , Element 'file_modified_since', attribute 'expectedValue' ['date']: The value '07/01/10' is not valid., ' to '
Removed dependencies: kace2656.bat (e8d6586e42be0392a5689c20ce3ce79e), kace5394.bat (da505c6edd1b264a6924301fd3b12c93)
Added dependencies: kace5758.bat (e8d6586e42be0392a5689c20ce3ce79e), kace7916.bat (da505c6edd1b264a6924301fd3b12c93)
Policy or Job Rules changed.
Has anyone else succesfully used this paticular Verify type? Please let me know what I may be doing wrong or missing?
Thanks so much,
I've specified the path and name which seems fine but I can't seem to get the script to accept any date I set for the "Modified Since:" field. I get parse errors that look like the following:
2010-07-08 08:36:16 Cached Parse Error changed from 'KBotXMLParser: invalid document (XSD check failed) for 632: BookMaster update Z742AOCP.jwr July 01 2010 , Element 'file_modified_since', attribute 'expectedValue' ['date']: The value '07/01/10' is not valid., ' to '
Removed dependencies: kace2656.bat (e8d6586e42be0392a5689c20ce3ce79e), kace5394.bat (da505c6edd1b264a6924301fd3b12c93)
Added dependencies: kace5758.bat (e8d6586e42be0392a5689c20ce3ce79e), kace7916.bat (da505c6edd1b264a6924301fd3b12c93)
Policy or Job Rules changed.
Has anyone else succesfully used this paticular Verify type? Please let me know what I may be doing wrong or missing?
Thanks so much,
1 Comment
[ + ] Show comment
-
Is there a script to verify a certain file hasn't been modified more than a certain amount of days? - JSenesap 7 years ago
Answers (4)
Please log in to answer
Posted by:
bryceb
14 years ago
Thanks for stopping by and looking. As they say if you want something fixed you have to do it yourself. I kept trying and sure enough this Verify works with hyphens not backslashes in this format. YYYY-MM-DD
Hopefully this helps someone else trying to do the same thing!!!!
Thanks,
Hopefully this helps someone else trying to do the same thing!!!!
Thanks,
Comments:
-
This helped me! Thanks. - AndyH 7 years ago
Posted by:
snissen
14 years ago
(What perfect timing...) I'm trying to use the "file was modified since" step for the first time today, and I get the ugly "Cached Parse Error" if I enter either:
2010-07-01
or
7/1/2010.
So what is the correct syntax?
(And shouldn't stuff like this be in the manual??)
(And if the KBOX knows there's an error, evidenced by the Cached Parse Error message, why let me save the script at all--why not alert me to the error and stay on the script editing screen???) Sande
2010-07-01
or
7/1/2010.
So what is the correct syntax?
(And shouldn't stuff like this be in the manual??)
(And if the KBOX knows there's an error, evidenced by the Cached Parse Error message, why let me save the script at all--why not alert me to the error and stay on the script editing screen???) Sande
Posted by:
bcreasey
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.