Solved

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

Posted on 2003-11-03
2
353 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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 article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
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 …
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…

730 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