Scott15239
Programmer
Any suggestions or ideas would be welcomed.
The IT organization I work for requires that for any changes being made to any application, we must publish a turnover memo and put it into a public directory on our lan for it to be eventually included in a single turnover memo. The week following the publishing of the document, the turnover memo must be moved or deleted from the public folder, or it will be published again. I'd like to write a batch script that does the following:
1. Checks what day of the week it is
1a. If it is a Monday or Tuesday (because most holidays seem to fall on Mondays anymore) then:
2. Check to see if document exists - if it does:
2a. Delete previous weeks document from folder 1 (private team directory).
2b. Move (or copy and delete original) document from folder 2 (public folder) to folder 1.
2c. If document does NOT exist in public folder then do nothing.
I can go out and easily write a dumb batch script to copy and delete, but I'd like to put some intelligence behind so it knows 1) when to move or not move, and 2) to know when NOT to delete the old copy.
I know it doesn't sound like much to do this manually, but if you have 80 teams who all could use the same process every week, the benefits become much more obvious!
Thanks!!!
The IT organization I work for requires that for any changes being made to any application, we must publish a turnover memo and put it into a public directory on our lan for it to be eventually included in a single turnover memo. The week following the publishing of the document, the turnover memo must be moved or deleted from the public folder, or it will be published again. I'd like to write a batch script that does the following:
1. Checks what day of the week it is
1a. If it is a Monday or Tuesday (because most holidays seem to fall on Mondays anymore) then:
2. Check to see if document exists - if it does:
2a. Delete previous weeks document from folder 1 (private team directory).
2b. Move (or copy and delete original) document from folder 2 (public folder) to folder 1.
2c. If document does NOT exist in public folder then do nothing.
I can go out and easily write a dumb batch script to copy and delete, but I'd like to put some intelligence behind so it knows 1) when to move or not move, and 2) to know when NOT to delete the old copy.
I know it doesn't sound like much to do this manually, but if you have 80 teams who all could use the same process every week, the benefits become much more obvious!
Thanks!!!