Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Script for indexing & searching data CDs

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,46541
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Script for indexing & searching data CDs
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Script for indexing & searching data CDs - 5/2/2007 1:53:36 AM   
  markmcrobie

 

Posts: 314
Score: 0
Joined: 12/12/2006
Status: offline
Ok, here's a script that will index the file & path names of files on a CD, give the disc a unique number, and keep a text file of the contents of the disc, then allow searching of these text files.

If you run it with a disc in that's not been indexed before, it'll write the contents to a text file and then tell you which number to label the disc with.

If you run it with a disc in that's been indexed before, it'll open the text file of that disc

If you run it with no disc in, it'll let you search for a term across all the indexes, and return the disc numbers of discs which have file names matching your search.

You need to set objPath to the letter of your CD drive.

You need to change objCDFolder to whatever folder you want the text files to be saved in.  Within this folder you need a sub folder called Index, and within sub folder Index you need a text file called index.txt.  This text file *must* have 1 line to start with, and that line must start with a zero and then a comma, then anything you like.  For example mine's reads:

0,Index

Also there *must* be a carriage return after the 1st line.  In other words with the text file open in notepad, and the cursor at the end of the word "Index", you should be able to use the down arrow on your keyboard to bring the cursor down to line 2, no less, no more.

Here's the code, suggestions, comments and criticism greatly appreciated:


      
 
 
Post #: 1
 
 RE: Script for indexing & searching data CDs - 5/7/2007 11:09:48 PM   
  markmcrobie

 

Posts: 314
Score: 0
Joined: 12/12/2006
Status: offline
Improved version:


      

(in reply to markmcrobie)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Script for indexing & searching data CDs Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts