Here's the premise.
- Purpose of the script: To monitor the contents of a folder on WindowsXP.
- The script will only allow folder and/or file names —in a folder monitored by the script— to begin with "4 numbers ( year ) a dash, 2 numbers ( month ) a dash, and 2 more numbers ( day );" In that sequence. In another words, the script only allows folder/file names to start with a date like sequence. Yes I know, someone could scam the script by, for instance, putting "0000-00-00." Obviously that's not a date. Don't worry about that. In addition, the script allows characters to the right of the day position, but only if they are separated from the date by an underscore.
For instance, all names to folders/files inside of my "ASSETS" folder, must start with a date. The point of the script is to enforce this policy. Training wheels, if you may.
Like this:
ASSETS
> 2006-03-01
> 2006-03-02
> 2006-03-03
> 2006-03-03_SOME-TEXT
Pseudo Code:
—— ------------------------------------------------------------
if ( folder/file that the user tries to make does note begin with a date like sequence ) {
LaunchAlert ( "You must start your folder/file name with a date like sequence." );
}
------------------------------------------------------------ ——
Anyone interested? Shoot me an estimate. I appreciate all replies.
Thank you
—
Justin