You can also map drive letters within a Java program for the duration of the
Java program:

        String mapCmd = new String("net use w: \\\\computername\\sharename");
        Runtime rt = Runtime.getRuntime();
        try     {
                rt.exec(mapCmd);
        }
        catch (IOException e)   {
                System.out.println(e);
        }

Jim


[PARA]Jim Urban - [EMAIL PROTECTED][TAB][PARA]Clinical
Connectivity Suite Product Manager[PARA]Suite 295[PARA]500 Park
Blvd.[PARA]Itasca, IL  60143[PARA]Voice:  (630) 250-3045 x106[PARA]Fax:
(630) 250-3046[PARA]    [PARA]Advancing Healthcare
Performance[PARA]www.parkcitysolutions.com[PARA]


-----Original Message-----
From: John Roth [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 2:54 PM
To: 'Tomcat Users List'
Subject: RE: Map network drive automatically

Also, Java does support UNC's (sometimes a little glitchy, you will need to
test well).  We use all UNC's now due to problems attaching to remote
drives, ensuring the drive is mapped correctly on startup, etc. UNC's have
worked well for us.

John

-----Original Message-----
From: Phillip Morelock [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 3:39 PM
To: Tomcat Users List
Subject: Re: Map network drive automatically


check out the

net use

command -- you can just use a batch file (.bat)




On 4/23/02 12:21 PM, "Jack Li" <[EMAIL PROTECTED]> wrote:

> Hello All,
> Does anybody know how to map a network drive by writing a java program or
> other program languages? My OS is w2k and web server is IIS and Tomcat 4.
>
>
> Thanks,
> Jack Li
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to