Re: How to read the server host name from a mapped network drive?



John wrote:

- given a drive letter from an user input, the web-application should
map the drive letter (let's say S:\) to a servername (e.g \\S014547) or
map the drive letter to the IP address of the server.

If you know, or can find out, how to get that information out of Windows using
command-line programs (maybe net.exe can tell you it), then you could execute
that command as an external process (Runtime.exec() and its more advanced
friends) and parse the results in Java.

-- chris


.



Relevant Pages

  • Mapping network resources from a service
    ... user, map a network ressource to a drive letter, run a process, delete ... application server mode. ... conclusion that local ressources mapping are global to the system: ...
    (microsoft.public.win32.programmer.kernel)
  • Re: hiding the backend
    ... Don't map a drive letter to that location. ... The point is that if you use Windows Explorer and browse to that ... when browing the network. ...
    (microsoft.public.access.security)
  • Re: HELP! Mapped Drive and Services dont play nicely
    ... so you can map the drive, and run the app as a service, but the app doesn't ... The problem is that it is not using a mapped drive letter in the service. ... the service to run under an account that should have the drive mapping ...
    (microsoft.public.windows.server.general)
  • Re: WNetGetConnection ERROR_NOT_CONNECTION in w2k, different logon session.
    ... We already have the logon script map the drive letter (which fails, ... > the drive in the user's context after obtaining the information ...
    (microsoft.public.win32.programmer.networks)
  • RE: Policies / drive mappings
    ... You can map one drive letter in the ... You could possibly login as the local administrator, map the drives ... manually and then copy NTUSER.DAT to the Default User folder. ... > We provide Ethical Hacking, Advanced Ethical Hacking, Intrusion ...
    (Security-Basics)