~Named Document

Discussion in 'Scripting' started by Guest, Feb 5, 2004.

  1. Guest

    Guest Guest

    I made the mistake of naming several documents with the
    tilde first. Now, I can't find them. Any ideas? I've
    never created a script and found

    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\cimv2")
    Set colFiles = objWMIService.ExecQuery _
    ("Select * from CIM_DataFile where FileName Like '%~%'")
    For Each objFile in colFiles
    Wscript.Echo objFile.Name

    Now how do I run it.
    Guest, Feb 5, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.