By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,129 Members | 2,300 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,129 IT Pros & Developers. It's quick & easy.

Question: converting a mapped drive letter to its real path name.

P: n/a
My question:

If I have a mapped driver letter g: that referes to
\\servername\d\foldername

How do I get java to convert it from g: to the real path so I can use
it?

I have a script that allows someone to locate a file on the server,
but most will use there mapped drives as they know nothing better.
Although I've tried to standardize the drives, its difficult to
maintain all the time with so many users. So, when they find their
file on the network g:\thisFolder\thisFile.txt...I want the script to
convert it to \\servername\d\foldername\thisFolder\thisFile.txt. Any
help would be greatly appreciated. Thanks!!!
Jul 23 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Lee
Ricky said:

My question:

If I have a mapped driver letter g: that referes to
\\servername\d\foldername

How do I get java to convert it from g: to the real path so I can use
it?


I think you're in the wrong newsgroup.
Java questions should go to comp.lang.java

Jul 23 '05 #2

P: n/a
On 17 Oct 2004 16:01:01 -0700, Lee wrote:
Ricky said:

My question:

If I have a mapped driver letter g: that referes to
\\servername\d\foldername

How do I get java to convert it from g: to the real path so I can use
it?


I think you're in the wrong newsgroup.
Java questions should go to comp.lang.java


I suspect this post *is* about Javascript, rather than Java.
The OP mentioned 'script' twice in subsequent paras.

To the OP, is this in a browser?

If so, does your script start with '<script ...',
or does it start with '<applet ...',
or, covering the third possibility for web-based content
does it start with '<%...', '<%!..' or '<%= '?

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #3

P: n/a
Javascript. <script> I have an intranet set up and I use a great
deal of javascript (utilizing activex), within hta's.

On Sun, 17 Oct 2004 23:54:43 GMT, Andrew Thompson
<Se********@www.invalid> wrote:
On 17 Oct 2004 16:01:01 -0700, Lee wrote:
Ricky said:

My question:

If I have a mapped driver letter g: that referes to
\\servername\d\foldername

How do I get java to convert it from g: to the real path so I can use
it?


I think you're in the wrong newsgroup.
Java questions should go to comp.lang.java


I suspect this post *is* about Javascript, rather than Java.
The OP mentioned 'script' twice in subsequent paras.

To the OP, is this in a browser?

If so, does your script start with '<script ...',
or does it start with '<applet ...',
or, covering the third possibility for web-based content
does it start with '<%...', '<%!..' or '<%= '?


Jul 23 '05 #4

P: n/a
On 17 Oct 2004 19:22:28 -0500, Ricky wrote:
Javascript. <script> I have an intranet set up and I use a great
deal of javascript (utilizing activex), within hta's.


Thanks for clarifying. I'll bow out of this conversation
now and cede to the knowledge of the experts.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Jul 23 '05 #5

P: n/a
Lee
Ricky said:

Javascript. <script> I have an intranet set up and I use a great
deal of javascript (utilizing activex), within hta's.


I think you want to use the GetDrive() method of FileSystemObject,
and then look at the properties of the Drive object that it returns.
Maybe "volumeName". Check the on-line MSDN documentation.

This link seems to work, at the moment:
http://tinyurl.com/3sqts

Jul 23 '05 #6

P: n/a
On 17 Oct 2004 17:57:11 -0700, Lee <RE**************@cox.net> wrote:

That did the trick. Thank you so very much for your help!!!!! I am
so very grateful.
Ricky said:

Javascript. <script> I have an intranet set up and I use a great
deal of javascript (utilizing activex), within hta's.


I think you want to use the GetDrive() method of FileSystemObject,
and then look at the properties of the Drive object that it returns.
Maybe "volumeName". Check the on-line MSDN documentation.

This link seems to work, at the moment:
http://tinyurl.com/3sqts


Jul 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.