adnankh
asked on
Python Script for check file name, type and date in windows folder
Hello Expert,
I have a situation where we getting files every morning 9:00AM on our Windows Server directory, We looking to move these files from folder A to Folder B but before that we want to run few checks i.e. file name, file type, date, and if file not available by 9:05AM. If all checks clear we want to have a confirmation email or if no files there or bad name we also want to have an email alert.
e.g.
d:\reports\au_19092014_sal esreports. csv (folder A)
d:\reports_Analytics\au_19 092014_sal esreports. csv (folder B)
We going to use Python for this(Or any better advise). I'm from Database background and never had experience with Python, So Would I as expert to help me get this done? Your support will be highly regards.
Regards,
Eddie
I have a situation where we getting files every morning 9:00AM on our Windows Server directory, We looking to move these files from folder A to Folder B but before that we want to run few checks i.e. file name, file type, date, and if file not available by 9:05AM. If all checks clear we want to have a confirmation email or if no files there or bad name we also want to have an email alert.
e.g.
d:\reports\au_19092014_sal
d:\reports_Analytics\au_19
We going to use Python for this(Or any better advise). I'm from Database background and never had experience with Python, So Would I as expert to help me get this done? Your support will be highly regards.
Regards,
Eddie
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
For more clarification,
File name = au_sysdate-1_salesreport.c sv
Arrival of files in folder A= 09:05AM everyday
File name = au_sysdate-1_salesreport.c
Arrival of files in folder A= 09:05AM everyday
Well then I let others handle this question.
I'm under a quite high work load at the moment and can only help to deblock certain small / perhaps tricky issues but at the moment I don't have time to do the complete code ASAP as you would need.
I'm under a quite high work load at the moment and can only help to deblock certain small / perhaps tricky issues but at the moment I don't have time to do the complete code ASAP as you would need.
ASKER
I'm interested in working script. we need to do it asap, and unfortunately I've no experience in Python.. so would be great if I get some sort of sample python script. I'll play around and change it with client requirement.
Thanks in Advance