vbscript - Scripting.FileSystemObject and ..lnk file -
I am looping all the files inside a folder
Scripting.FileSystemObject It appears that a file named lnk is present
Is there any way to fix this?
Thanks
Looping through folder using WMI also * .lnk files Try looking for this example:
strComputer = "." Set ObjWMIService = GetObject ("winmgmts:" _ "and" {Impersonation Lill = Impersonation}! \\ "& Struct Computer & amp; \" \ root \ cimv2 ") Set ColFiles = objWMIService _ ExecQuery (" CIM_DataFile Select from * Choose where drive = 'C:' and path = '\\ Temp \\' ") For every obz file call files, Wscript.Echo objFile.Name next to
I hope That it helps.
/ frank
Comments
Post a Comment