Current location: Hot Scripts Forums » Advertising Forums » Job Offers & Assistance » Need folder policy VBScript.


Need folder policy VBScript.

Reply
  #1 (permalink)  
Old 03-13-06, 10:29 PM
potion9 potion9 is offline
New Member
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Need folder policy VBScript.

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
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change VBScript vbYesNo box title (remove 'VBScript:') crmpicco ASP 8 12-10-07 11:28 PM
List Everything In Folder (PHP) IKG Script Requests 14 03-22-06 03:42 AM
creating a new folder with a self generating id# after a form is sumbitted bhinkle ASP 1 02-21-05 02:01 PM
Order of vbscript and javascript in ASP marlin ASP 0 06-03-04 03:01 PM
edit php in Squirrelmail jrcortrightiii PHP 1 07-10-03 02:08 PM


All times are GMT -5. The time now is 12:36 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.