Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

accessing network paths on windows

 [1/5] from: semseddinm:bircom at: 17-Jul-2009 10:49


Hi, is there a way to access a network path like \\myserver\myfolder in rebol, without creating a map network drive?

 [2/5] from: ammon:johnson:gmai:l at: 17-Jul-2009 0:50


Yup. /computer-name/share-name You access them the same as if it were a root drive like /c. On Jul 17, 2009 12:48 AM, "Şemseddin Moldibi [ Bircom ]" < semseddinm-bircom.com> wrote: Hi, is there a way to access a network path like \\myserver\myfolder in rebol, without creating a map network drive?

 [3/5] from: petr:krenzelok:seznam:cz at: 17-Jul-2009 10:03


... and also ... for conversion you can use to-rebol-file and to-local-file functions ... -pekr- Ammon Johnson napsal(a):

 [4/5] from: semseddinm:bircom at: 17-Jul-2009 13:13


Well, I tried %//myserver/share :)) It's a windows habbit :) to-rebol-file "\\myserver\share" is also work. Thanks.

 [5/5] from: brock:kalef:innovapost at: 17-Jul-2009 10:04


If you have an obscure computer name as I do on my work provided PC and to save the time it takes to look it up... ; using the windows syntax
>> to-rebol-file join "\\" [form read dns:// "\share-name"]
; using rebol syntax
>> to-file join "/" [form read dns:// "/share-name"]
Where you are automatically retrieving the computer name and converting it to a string using; form read dns://