Re: [Activetcl] UNC-path
by Jeff Hobbs other posts by this author
Aug 7 2008 1:51PM messages near this date
view in the new Beta List Site
[Activetcl] UNC-path
|
Re: [Activetcl] UNC-path
jonny.schonqvist@[...].com wrote:
> How could i get the UNC-path from a mapped drive with tcl, is it possible?
>
> Example
> This is what I could read from my script at my computer
>
> M:\scripts\utillities.tcl
>
> but here is where the file really is located
>
> \\SERVER1\path\to\scripts\utillities.tcl
>
> the path "\\SERVER1\path\to" is mapped at my computer as M:
> How could I extract the UNC-path?
While Tcl understands the UNC paths (low level, it uses native Win32
APIs), the mapping is done at the OS networking layer. It is likely
that you can pull this information from the registry though.
Jeff
_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Jonny Schonqvist
Jeff Hobbs
Matthias Hoffmann
Christophe De Clercq
Richard Toohey
|