× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



As I understand it, when you use RUN AS, you do not get the mapped drives when ran under a different profile.

As an example, I run Mozilla under RUN AS. Mozilla cannot see any of my mapped drives because it isn't running
under my authority. The mapped drives are specific to my profile and it's login script. When you RUN AS, you
are running under a different authority.


What you need to do is modify your VB to map the drives. This way, when the VB app launches the mapped drives
will connect using the RUN AS credentials.


See:
http://www.vb-helper.com/howto_map_network_drive.html
or
http://www.google.com/search?q=how+to+map+a+drive+in+VB&sourceid=firefox&start=0&start=0&ie=utf-8&oe=utf-8


Another thing you could do is not map the drives until VB launches. When it launches, prompt the user for their AS/400
password. When you do the


If WNetAddConnection(share_name, password, _
       drive_letter) > 0 _

use the password they entered into Vb.  Assumptions are made that you know this 
exposes the
password to security hacks by storing it in memory as well as swap file., so 
you would want
to fill the variable with random characters, then clear it out, as soon as the 
mapping is made.





http://www.primeinc.com
**********************************************************************
This email and any files transmitted with it are confidential
and intended solely for the use of the individual or entity to
whom they are addressed.  If you have received this email
in error please reply to the sender of the message.

The views expressed in this correspondence may not
reflect the views of Prime, Inc.

This footnote also confirms that this email message has
been scanned for the presence of computer viruses.
**********************************************************************


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.