quote:
Originally posted by SpunkyLoveMuff
until I can bothered to write code to stop it searching EVERYWHERE, thus lagging stuff up (Smilie)
in vista use something like
code:
var dir = "c:/downloads/";
var db = new ActiveXObject('ADODB.Connection');
db.open("Provider=Search.CollatorDSO;Extended Properties='Application=Windows';");
var results = db.Execute("SELECT System.ItemPathDisplay FROM SystemIndex WHERE SCOPE='file:" + dir + "'");
//loop over and debug.trace each item
while(!results.EOF){
Debug.Trace(results.Fields.item('System.ItemPathDisplay'));
results.MoveNext();
}