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

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -