[THIN] Re: OT: script help, searching for folder

  • From: "Henry Sieff" <hsieff@xxxxxxxxxxxx>
  • To: <thin@xxxxxxxxxxxxx>, <thin@xxxxxxxxxxxxx>
  • Date: Fri, 22 Apr 2005 09:00:09 -0500

I don't do vbscript, but do you need the "\\" - can't you just use "\"? 

________________________________

From: thin-bounce@xxxxxxxxxxxxx on behalf of Evan Mann
Sent: Fri 4/22/2005 8:28 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] OT: script help, searching for folder



I have a segment of script that I need to search a computer for a path,
but I need to be able to wildcard on the path, since the pathname might
not always be unique.  I have the follow section of code, but is is not
working, can anyone point me in the right directory?

Set objWMIService = GetObject _
    ("winmgmts:\\" & strComputer & "\root\cimv2")
Set colFolders = objWMIService.ExecQuery _
    ("Select * From Win32_Directory Where " & _
        "Name = 'c:\\program files\\symantec*'")


********************************************************
This Weeks Sponsor: RTO Software TScale
TScale provides a cost-effective way to improve performance, capacity and 
stability for thin-client servers like Citrix MetaFrame or Microsoft Terminal 
Services running Windows NT, 2000 or 2003.
http://www.rtosoft.com/enter.asp?id)6
**********************************************************
Useful Thin Client Computing Links are available at:
http://thin.net/links.cfm
ThinWiki community - Excellent SBC Search Capabilities!
http://www.thinwiki.com
***********************************************************
For Archives, to Unsubscribe, Subscribe or
set Digest or Vacation mode use the below link:
http://thin.net/citrixlist.cfm


Other related posts: