473,385 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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

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
6 2386
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: jenny | last post by:
Hi, I am trying to find a VB way that would create a folder on all existing drives - the folder name would be the same on each drive. ie c:\backup, d:\backup, etc. But the folders would only be...
0
by: Ricky | last post by:
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...
2
by: giloosh99 | last post by:
Hello, Im grabbing tables via VB code using visual foxpro ODBC drives. The tables directory is in a mapped network drive. The code works fine and does the job, however if the computer is idle for...
5
by: Nirosh | last post by:
Hi All, Can any one suggest me a best way to do this .. I have a thrid party tool "EXE" that we need to use with our web service to manipulate some complex XML files, which reside in a...
0
by: John Dann | last post by:
I run a small LAN with a remote (PC) file store that automatically backs up our data every night. With VB6 there was no problem working with VB projects directly from the central file store. But on...
2
by: Ben | last post by:
Hi, Thanks for reading this post... I am trying to get the computer/server names from the mapped drives on the Clients PC when they select a file from the upload "browse" button. When the user...
5
by: Marc | last post by:
I am trying to run a web service that has pre-compiled dll's that reference dll's that are on a mapped drive. The web service can not load because it does not see that mapped drive and returns an...
4
by: Luc The Perverse | last post by:
Hi - I have very little C# programming experience. I am making a software product which calls for an interface almost identical to Windows Explorer - and I wondered if mounting a "virtual drive"...
5
by: BigM | last post by:
Hi Guys, I am working up a little 'documents' section to an app of mine, where people can add links to docs on various share drives in our LAN, and they are displayed along with other details and...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.