![]() |
|
|||||||
| ASP & VBScript Forum Need help from a webmaster with ASP or VBScript, you may ask in this forum? |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi,
I'm trying to use WMI to grab a collection of winnt user profile folders, then check the folder names to see if they have certain phrase in them and if so then grab the ntuser.dat file in that folder. I've got this far... Set colFolderList = objWMI.ExecQuery _ ("ASSOCIATORS OF {Win32_Directory.Name='C:\Documents and Settings'} Where " _ & "ResultClass = Win32_Directory") For Each objFolder In colFolderList If InStr(objFolder.FileName, "admin") Then Then I lose it... Set colDATFile = objWMI.ExecQuery _ ("ASSOCIATORS OF {Win32_Directory.Name='C:\Documents and Settings\' & objFolder.FileName} Where " _ & "FileName = NTUser.dat") I know that's wrong but I can't work outthe syntax. Please can you help. Thanks |
|
This ad is part of our Revenue Sharing program |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Append text file | frikkied | ASP & VBScript Forum | 3 | 10-31-2007 09:04 PM |
| Example of Inserting and Retrieving data from xml file | hanusoft | Web Developers & Development Software | 0 | 10-01-2007 06:26 AM |
| text file to excel | heavydee | ASP & VBScript Forum | 3 | 09-21-2007 05:55 PM |