Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: How to monitor a file located on the remote host(win2k)?

by ioiioi (Initiate)
on Sep 16, 2005 at 11:25 UTC ( [id://492581]=note: print w/replies, xml ) Need Help??


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)?

hey guys, I have found the following vbs scripts from Microsoft, it can do the job, and I would like to convert it to perl. Is there anybody can help me?
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
    You may ask at the Help Desk section of the monastery... Seriously, you should really take into account the extremely good advices and comments in ikegami's reply.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://492581]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-19 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found