?
Solved

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

Posted on 2003-11-03
2
Medium Priority
?
363 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
2 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 750 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
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 Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
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…

807 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