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

[REBOL] Re: Convert DOS-Filename to REBOL-Filename

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/