Solved

How do I perform "NET FILE" functions programmatically (winAPI or .Net framework)

Posted on 2003-11-03
2
355 Views
Last Modified: 2013-12-03
I would like to perform the same function as "NET FILE" with a VB.Net application.  That includes listing and closing the open files.  I'm looking for the Windows API calls or, preferrably, .Net framework functions to do this.
0
Comment
Question by:mwinder
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 250 total points
ID: 9677348
The WIN32 API NetFileEnum() is used by the "NET.EXE" utility to retrieve open files from a server.  I can show you how to use this function in a C/C++ application but I have no idea about VB.NET.

Hopefully this is enough information to get you headed in the right direction.
0
 
LVL 86

Expert Comment

by:jkr
ID: 9679092
Check out http://www.mvps.org/vbnet/index.html?code/network/netfileenum.htm on 'NetFileEnum()' in VB. Closing will be another problem, though...
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question