| View previous topic :: View next topic |
| Author |
Message |
arcray Valued Contributor


Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Thu Jan 23, 2003 5:18 pm Post subject: Is it possible to ascertain the UNC from a drive letter? |
|
|
Using VDS, or an Addon, or a batch file, or something?
Say Drive G: is a share on a server somewhere, how can I find out what the UNC for it is?
Thanks in advance.
Andy _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Thu Jan 23, 2003 5:20 pm Post subject: Re: Is it possible to ascertain the UNC from a drive letter? |
|
|
| arcray wrote: | Using VDS, or an Addon, or a batch file, or something?
Say Drive G: is a share on a server somewhere, how can I find out what the UNC for it is?
Thanks in advance.
Andy |
UNC  |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Thu Jan 23, 2003 5:47 pm Post subject: |
|
|
Try using this reg key
%%DRIVE = Drive-letter
info @regread(curuser,Network\%%DRIVE,remotepath,no-path-found)
moke |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Jan 23, 2003 6:52 pm Post subject: |
|
|
| I can't even find that 'Network' reg-key, althrough I do have a network (Windows XP Professional & Windows 3.11 (386 or something...) ) |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Thu Jan 23, 2003 7:15 pm Post subject: |
|
|
WHAT!!!!!!!!!!!!!!!!!
Windows 3.11!!!???? have you been hanging out with Mac!?
I doubt you will find it in 3.11. It is in XP. I prolly shouda checked other
win versions but i vaugely remember it also being in 2000 and NT. If you
can't find the key just manually find the UNC path and search your
registry for that string and it should be easy enough to track down the
drive letter association and therefore the regkey. Also maybe that key
doesn't show up without a mapped drive letter.
Mac, sorry to drag you into this especially when i know you've upgraded
to win95 .
moke |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Thu Jan 23, 2003 7:23 pm Post subject: |
|
|
| moke wrote: | Mac, sorry to drag you into this especially when i know you've upgraded
to win95 . |
I think when Windows Longhorn comes out, Mac will upgrade to Windows 98 (First Edition, that is ) (always about 7 steps behind ) |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Thu Jan 23, 2003 8:15 pm Post subject: |
|
|
Well, I know one thing for sure... Over a couple of years Mac' computer can't contain any virusses at all (so no expensive virus scanners are needed), because they aren't compitable with his machine...  |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Thu Jan 23, 2003 8:59 pm Post subject: |
|
|
I can see the message now:
| Quote: | Norton AntiVirus has found a virus on your computer, which is not compatible with your operating system.
Please upgrade to run the virus. |
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Thu Jan 23, 2003 9:07 pm Post subject: |
|
|
Ha! just the thing happened to me a few months ago. The thing is I was using Windows XP Home SP 1 and Norton AV 2003 kept telling me I should upgrade my OS as Norton is not compatible, Norton 2002 worked fine though and came shipped with my PC. I gave up on it and finally purchased McAfee VirusScan Online  |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Thu Jan 23, 2003 9:22 pm Post subject: |
|
|
If you are an administrator and the remote computer is running NT/2000/XP then
you should be able to access the hidden shares, such as:
\\REMOTECOMPUTER\G$ |
|
| Back to top |
|
 |
arcray Valued Contributor


Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Fri Jan 24, 2003 6:40 am Post subject: |
|
|
| Quote: | If you are an administrator and the remote computer is running NT/2000/XP then
you should be able to access the hidden shares, such as:
\\REMOTECOMPUTER\G$ |
I won't know the name of the 'REMOTECOMPUTER' until I install the package and it is then that the package needs to translate the drive letter into a UNC path
It is for a distributed reporting package where the queries work with UNCs rather than drive letters and currently it needs to work on all OSes from Windows 98 2nd Ed and onwards.
A NET USE and some string manipulation was the root I was going to go down, but then I realised there must be a better way?
| Quote: | %%DRIVE = Drive-letter
info @regread(curuser,Network\%%DRIVE,remotepath,no-path-found)
|
answers the issue for me, although I am surprised I did not know that already. I think I had a thick day yesterday and did not think things through properly.
Cheers _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
| Back to top |
|
 |
arcray Valued Contributor


Joined: 13 Jul 2001 Posts: 242 Location: Aude, France
|
Posted: Fri Jan 24, 2003 9:36 am Post subject: |
|
|
| Quote: | I think I had a thick day yesterday and did not think things through properly.
|
It's happening again! Now I can't remember how to ascertain where a machines temporary folder is???!!!
Later: @WINDIR(T)
but not in the help file! _________________ Andrew GRAY
If you don't know I am looking for work, I won't get the job.
andrewrcgray.com |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Jan 25, 2003 11:29 am Post subject: |
|
|
You guys are just jealous - at this point, Win95 still does everything
I need.
But ya'll really should keep buyin' every OS upgrade that comes
out - I'm sure ol' Bill Gates can use the money...
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
Tsunami1988 Contributor


Joined: 15 Aug 2002 Posts: 70 Location: The Netherlands
|
Posted: Sat Jan 25, 2003 11:50 am Post subject: |
|
|
| Mac wrote: | But ya'll really should keep buyin' every OS upgrade that comes
out - I'm sure ol' Bill Gates can use the money... |
Buying? Who said anything about buying?  |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Sat Jan 25, 2003 12:02 pm Post subject: |
|
|
Well, if it's XP - ya better have bought it...  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
|