Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
I've thought about piping the 'net use' output to a text file and disecting it, but didn't know if there was a cleaner way to do it.
driveletter = "z:" objSvc = ObjectGet("Winmgmts:\\.\root\cimv2") objEnum = objSvc.ExecQuery(StrCat("Select * from win32_logicaldisk where DeviceId = '", driveletter,"'"), "WQL", 48) ForEach obj in objEnum Message(driveletter, obj.providername ) next objEnum = 0 objSvc = 0
Article ID: W17325
File Created: 2007:07:03:14:29:30
Last Updated: 2007:07:03:14:29:30