in reply to Re^2: How to monitor a file located on the remote host(win2k)?
in thread How to monitor a file located on the remote host(win2k)?
strComputer = "192.168.100.17" Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" _ & strComputer & "\root\cimv2") Set colFiles = objWMIService. _ ExecQuery("Select * from CIM_DataFile where Name = 'D:\\languardns +s6.exe'") For Each objFile in colFiles Wscript.Echo "File Name: " & "." & objFile.Extension Wscript.Echo "Path: " & objFile.Path & objFile.Name Wscript.Echo "File Size: " & objFile.FileSize Next
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to monitor a file located on the remote host(win2k)?
by blazar (Canon) on Sep 19, 2005 at 14:39 UTC |