Solved

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

Posted on 2003-11-03
2
342 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 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
SSIS Lookup not matching 4 49
Problem to Date and time Picker 32 95
Visual Studio Debugging 3 109
Problem to file 3 48
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

758 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now