473,763 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2756
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******** ************@ro gers.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******** ************@ro gers.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
21313
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 someone (client) that visits a web site through an anonymous proxy if this person ONLY has JavaScript enabled in their browser? This is NOT a question about PHP, perl, VBScript, Java(.class), or ActiveX. Let us _only_ deal with JavaScript for...
1
3895
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, \\myremote\c$\temp\hi.txt, true); This API is run from a web service that exposes it. The problem is as follows: 1) I request a page (On the web service machine) from my web server (Note
5
10522
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 do this? (IIS 5 or 6 In case you're wondering why I would do this, we have many web sites on a single server, and there are groups of sites that need to share common configuration information. I'd like to ease some administration by having one...
7
13406
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 every thing else from windows update. ..NET 1.0 and 1.1 installed on the server. Actually .NET was installed before the server was made a DC.
2
2406
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 with the IP address in the log. Any ideas how to achieve this? I have seen several examples of obtaining the IP address given the host name using the dns.gethostbyname function but have not seen anything that will work the other way. Thanks in...
1
1761
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 connections were in use and max pool size was reached. This is on a connection.open command. Our ISP is providing the web machine and has many customers on it so I can't really tell if it's us or some other customer that is causing the...
1
1353
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> <number>1</number> <series> and the final XML output file as:
5
7865
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 setting is of course stored in the app.exe.config file located in the same directory as the exe. Upon closing the form, I save the user setting which then creates a user.config file in the appdata directory in my profile. This is all well and good....
0
2023
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 different machines. - domain ASPNET account that handles the function/permissions of the (traditionally) local machine ASP.NET account.
0
10149
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10003
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9943
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9828
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8825
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7370
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5271
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5410
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3918
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.