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

Convert DOS-Filename to REBOL-Filename

 [1/3] from: hk:readysoft at: 26-Jan-2001 10:47


Hi list, how can I convert a DOS-Filename like E:\P\Rebol\Sendmail\Data\mail.txt to a REBOL filename like %/E/P/Rebol/Sendmail/Data/mail.txt many thanks Helmut

 [2/3] from: al::bri::xtra::co::nz at: 26-Jan-2001 23:42


Helmut asked:
> how can I convert a DOS-Filename > like E:\P\Rebol\Sendmail\Data\mail.txt > to a REBOL filename > like %/E/P/Rebol/Sendmail/Data/mail.txt
Check out http://www.rebol.orgfor a conversion routine. Or:
>> Dos: "E:\P\Rebol\Sendmail\Data\mail.txt"
== "E:\P\Rebol\Sendmail\Data\mail.txt"
>> replace Dos ":\" "/"
== "E/P\Rebol\Sendmail\Data\mail.txt"
>> replace/all Dos "\" "/"
== "E/P/Rebol/Sendmail/Data/mail.txt"
>> Root: %/
== %/
>> Root/:Dos
== %/E/P/Rebol/Sendmail/Data/mail.txt might do the trick. I hope that helps! Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/

 [3/3] from: g:santilli:tiscalinet:it at: 26-Jan-2001 19:55


Hello Andrew! On 26-Gen-01, you wrote: AM> Check out http://www.rebol.orgfor a conversion routine. I think the new /Core has the conversion functions built-in. Try with HELP "LOCAL" and you should find them. Regards, Gabriele. -- Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/