|
-
April 14th, 2003, 12:44 AM
#1
Network drive mapping
I want to know the ways to achieve the following objectives:
1. map a network drive using c#.
2. Open a remote service handle to start/stop/restart
Can any one help?
Muthu
-
April 17th, 2003, 03:38 AM
#2
look at this article for remote hanling of services...
http://www.codeguru.com/system/Simpl...e_Example.html
you can map drive by calling createfile function of Winapi...
If you think you CAN, you can, If you think you CAN'T, you are probably right.
Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.
-
April 17th, 2003, 03:53 AM
#3
I need the code in c#. I was trying to use LogonUser API with DLLImport in c#. But that is also giving some error.
For OpenService in a remote machine, you need to have admin privilege in that machine. That is why I was trying to call LogonUser API (The otherway was to map a drive)
Muthu
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|