473,396 Members | 2,024 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

obtaining file information from another machine

Hello,

I need to know which programs are opn on another machine in my network,
these programs are opened from a shared drive on the server. How can I do
this ? I've already dowloaded a sample program form vbnet.mvps.org but it
doesn't work??

Greets John
Jul 17 '05 #1
3 2740
I just tried the code off the site and it works as advertised. NetFileEnum
is designed to return the names of some or all open files on a server. It
will not return files on the local machine opened by apps running on that
machine. If you point it to the server, it should list the files as long as
the application opening the files has it opened for exclusive use. AFAIK, if
the app just opens, reads and closes the file the file won't be identified
in the list, even if the user is still working on the file.

As a simple test to ensure the code works, on your local machine open
Explorer, select a folder containing some word or excel files, share that
folder, then map a drive to that folder on your machine, i.e. X:\ = c:\my
documents share. Now open one of the files using that mapped drive X:\ an
run the code specifying "" as the server - the file(s) you opened through
this networked share should be listed. Once you're assured the code works,
open one of the server files and change the "" to the server name.

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"John" <no****@fiktief.com> wrote in message
news:41***********************@news.skynet.be...
: Hello,
:
: I need to know which programs are opn on another machine in my network,
: these programs are opened from a shared drive on the server. How can I do
: this ? I've already dowloaded a sample program form vbnet.mvps.org but it
: doesn't work??
:
: Greets John
:
:

Jul 17 '05 #2

"Randy Birch" <rg************@mvps.org> schreef in bericht
news:JY********************@rogers.com...
I just tried the code off the site and it works as advertised. NetFileEnum
is designed to return the names of some or all open files on a server. It
will not return files on the local machine opened by apps running on that
machine. If you point it to the server, it should list the files as long as the application opening the files has it opened for exclusive use. AFAIK, if the app just opens, reads and closes the file the file won't be identified
in the list, even if the user is still working on the file.

As a simple test to ensure the code works, on your local machine open
Explorer, select a folder containing some word or excel files, share that
folder, then map a drive to that folder on your machine, i.e. X:\ = c:\my
documents share. Now open one of the files using that mapped drive X:\ an
run the code specifying "" as the server - the file(s) you opened through
this networked share should be listed. Once you're assured the code works, open one of the server files and change the "" to the server name.

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"John" <no****@fiktief.com> wrote in message
news:41***********************@news.skynet.be...
: Hello,
:
: I need to know which programs are opn on another machine in my network,
: these programs are opened from a shared drive on the server. How can I do : this ? I've already dowloaded a sample program form vbnet.mvps.org but it : doesn't work??
:
: Greets John
:
:


Randy,

Ok it works now, another question can I terminate the program on another
computer?
I want to start a program on a computer, the first thing I do is look on
other computers in my network if the program is running and if it is running
than terminate that program (the boss can override any other user)

many thanks

Greets John

Jul 17 '05 #3
Nope. You can reboot the user's machine, but that's a bit drastic, eh?

--
Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/
"John" <no****@fiktief.com> wrote in message
news:41***********************@news.skynet.be...
:
: "Randy Birch" <rg************@mvps.org> schreef in bericht
: news:JY********************@rogers.com...
: > I just tried the code off the site and it works as advertised.
NetFileEnum
: > is designed to return the names of some or all open files on a server.
It
: > will not return files on the local machine opened by apps running on
that
: > machine. If you point it to the server, it should list the files as long
: as
: > the application opening the files has it opened for exclusive use.
AFAIK,
: if
: > the app just opens, reads and closes the file the file won't be
identified
: > in the list, even if the user is still working on the file.
: >
: > As a simple test to ensure the code works, on your local machine open
: > Explorer, select a folder containing some word or excel files, share
that
: > folder, then map a drive to that folder on your machine, i.e. X:\ =
c:\my
: > documents share. Now open one of the files using that mapped drive X:\
an
: > run the code specifying "" as the server - the file(s) you opened
through
: > this networked share should be listed. Once you're assured the code
: works,
: > open one of the server files and change the "" to the server name.
: >
: > --
: >
: >
: > Randy Birch
: > MS MVP Visual Basic
: > http://vbnet.mvps.org/
: >
: >
: > "John" <no****@fiktief.com> wrote in message
: > news:41***********************@news.skynet.be...
: > : Hello,
: > :
: > : I need to know which programs are opn on another machine in my
network,
: > : these programs are opened from a shared drive on the server. How can I
: do
: > : this ? I've already dowloaded a sample program form vbnet.mvps.org but
: it
: > : doesn't work??
: > :
: > : Greets John
: > :
: > :
: >
:
: Randy,
:
: Ok it works now, another question can I terminate the program on another
: computer?
: I want to start a program on a computer, the first thing I do is look on
: other computers in my network if the program is running and if it is
running
: than terminate that program (the boss can override any other user)
:
: many thanks
:
: Greets John
:
:
:

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Privacy Advocate | last post by:
//crossposted to: comp.lang.javascript, alt.comp.lang.javascript in an effort to get factual answers from JavaScript experts// Simply put; Is it possible to obtain the real (actual) IP address of...
1
by: POnfri | last post by:
Hi, I have a problem in a peace of code were i'm doing a file copy using File.Copy. The Source is local and the target is a remote machine. Example: File.Copy(C:\temp\hi.txt,...
5
by: BPearson | last post by:
Hello I would like to have several sites share a single web.config file. To accomplish this, I would point the root of these sites to the same folder. Is there any reason why I might not want to...
7
by: Mark | last post by:
Hello, I have researched and tried every thing I have found on the web, in groups and MS KB articles. Here is what I have. I have a Windows 2000 Domain Controller all service packs and...
2
by: amirmira | last post by:
Hi, I have an application where I monitor the status of a machine using it's IP address. I would like to log an error when the machine goes down - but I want to add the name of the machine along...
1
by: UJ | last post by:
We have recently started getting the following error message: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled...
1
by: Cartik | last post by:
Hello, This question is regarding applying an XSL transformation to map one XML file to another. Im posting this question again. Say I have original XML attributes like: <series> ...
5
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based...
0
by: Steve | last post by:
Hello- Your assistance with this issue is greatly appreciated. Environment: - Load-balanced IIS 6.0 servers (Win2003) - web servers point (via UNC path) to a Microsoft File Cluster on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.