Re: Map network drive for user using VB/ASP.NET




"Brian Nicholson" <BrianNicholson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:24D9F15B-7085-415B-A48F-8CD4B3FAB7E8@xxxxxxxxxxxxxxxx
"Mr. Arnold" wrote:

As someone else said, you might not find a VB example, and as a good .Net
programmer, you need to know C# and VB. It's not that hard to translate.
There is no reason that you can't use the class for an ASP.Net solution.

There is also no reason you couldn't just take the class talked about as is,
compile as a C# dll, and set reference to the DLL and use it in your VB
project.

http://www.codeproject.com/KB/system/mapnetdrive.aspx


Thank you for the response. I have no problems using C# code; I just asked
that initially because it's what I'm most familiar with. I've come across
that class before, but the problem is that it requires the password of the
user I'm mapping a network drive for. I was hoping there was some way I
could use IIS Windows Authentication or something similar to do this with an
account that has administrative rights, so I wouldn't be required to know the
user's password.

I don't see why you couldn't use a generic user-id and psw that had admin rights, but of course this application should never face the Internet.

.



Relevant Pages

  • Re: Embedd DLL into executable
    ... I don't see actually the reason to implement this technique. ... If some product requires having DLL, let it be in product's directory, ... copied by MSI installer. ... OP tries to avoid. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: CVF DLL, problems reading binary file
    ... in Compaq Visual Fortran which I'm trying to convert to a DLL to be ... I don't see any reason why a .EXE program and a DLL, ... ones that check subscripts and subroutine argument matching. ...
    (comp.lang.fortran)
  • Re: was layer transparent ... - REPORT AFTER CHANGES: FIREFOX VS IE
    ... it's just missing to translate those 2 words. ... Well there are good reason for me to maintais this approach. ... I have other reason which are not easy to explain to nonprogrammers. ... Why the validator complains and how do I replace WIDTH. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Permissions (EVERYONE POST TO THIS)
    ... Jeff: ... Thank youfor your opinion: ... I do not see any reason for a software ... >>up users with administrative rights. ...
    (microsoft.public.win2000.security)
  • Re: D3 odbc and .Net, almost there!
    ... that he was passing values ByVal instead of ByRef in his VB.NET code, ... The DLL itself follows well known standards ... as the parameters are correct it will work because the standards for calling ... there is no reason that code shouldn't work properly. ...
    (comp.databases.pick)

Loading