Guest £Jim Posted May 2, 2008 Posted May 2, 2008 Hi, I would like to be able to find out if a particluar file on a Windows 2003 server is open (and if possible who has it open). Is there a way to do that programmatically? Thanks --
Guest Pegasus \(MVP\) Posted May 2, 2008 Posted May 2, 2008 Re: Test for a particular open file? "£Jim" <hoo.me@some.net> wrote in message news:xn0fppa45jykvvh000@msnews.microsoft.com... > Hi, > I would like to be able to find out if a particluar file on a Windows > 2003 server is open (and if possible who has it open). Is there a way > to do that programmatically? > Thanks > -- Try this: net file | find /i "xxx.doc" where "xxx.doc" is the name of the file you're after.
Guest £Jim Posted May 2, 2008 Posted May 2, 2008 Re: Test for a particular open file? Thanks! That looks like it works. Is there a way to add a remote server as a parameter, or must it run on the server itself? --
Guest Pegasus \(MVP\) Posted May 2, 2008 Posted May 2, 2008 Re: Test for a particular open file? "£Jim" <hoo.me@some.net> wrote in message news:xn0fppe28k3v07a000@msnews.microsoft.com... > Thanks! That looks like it works. Is there a way to add a remote server > as a parameter, or must it run on the server itself? > -- Use psexec.exe from http://www.sysinternals.com.
Recommended Posts