forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Is it possible to ascertain the UNC from a drive letter?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Thu Jan 23, 2003 5:18 pm    Post subject: Is it possible to ascertain the UNC from a drive letter? Reply with quote

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
View user's profile Send private message Send e-mail
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Thu Jan 23, 2003 5:20 pm    Post subject: Re: Is it possible to ascertain the UNC from a drive letter? Reply with quote

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 Question Question Question
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Thu Jan 23, 2003 5:47 pm    Post subject: Reply with quote

Try using this reg key

%%DRIVE = Drive-letter
info @regread(curuser,Network\%%DRIVE,remotepath,no-path-found)

moke
Back to top
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jan 23, 2003 6:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
moke
Contributor
Contributor


Joined: 02 Jan 2002
Posts: 162

PostPosted: Thu Jan 23, 2003 7:15 pm    Post subject: Reply with quote

WHAT!!!!!!!!!!!!!!!!!
Windows 3.11!!!???? Very Happy have you been hanging out with Mac!? Smile

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 Smile.

moke
Back to top
View user's profile Send private message Send e-mail
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Thu Jan 23, 2003 7:23 pm    Post subject: Reply with quote

moke wrote:
Mac, sorry to drag you into this especially when i know you've upgraded
to win95 Smile.

I think when Windows Longhorn comes out, Mac will upgrade to Windows 98 (First Edition, that is Razz) Very Happy (always about 7 steps behind Laughing)
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Thu Jan 23, 2003 8:15 pm    Post subject: Reply with quote

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... Smile
Back to top
View user's profile Send private message
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Thu Jan 23, 2003 8:59 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1566

PostPosted: Thu Jan 23, 2003 9:07 pm    Post subject: Reply with quote

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 Smile
Back to top
View user's profile Send private message
Tommy
Admin Team


Joined: 16 Nov 2002
Posts: 746
Location: The Netherlands

PostPosted: Thu Jan 23, 2003 9:22 pm    Post subject: Reply with 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$
Back to top
View user's profile Send private message Send e-mail Visit poster's website
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Fri Jan 24, 2003 6:40 am    Post subject: Reply with quote

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 Rolling Eyes 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
View user's profile Send private message Send e-mail
arcray
Valued Contributor
Valued Contributor


Joined: 13 Jul 2001
Posts: 242
Location: Aude, France

PostPosted: Fri Jan 24, 2003 9:36 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Jan 25, 2003 11:29 am    Post subject: Reply with quote

You guys are just jealous - at this point, Win95 still does everything
I need. Wink

But ya'll really should keep buyin' every OS upgrade that comes
out - I'm sure ol' Bill Gates can use the money... Razz Laughing

Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
Tsunami1988
Contributor
Contributor


Joined: 15 Aug 2002
Posts: 70
Location: The Netherlands

PostPosted: Sat Jan 25, 2003 11:50 am    Post subject: Reply with quote

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... Razz Laughing

Buying? Who said anything about buying? Razz
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Sat Jan 25, 2003 12:02 pm    Post subject: Reply with quote

Well, if it's XP - ya better have bought it... Confused
_________________
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group