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

[REBOL] Re: can't call notepad

From: anton:wilddsl:au at: 14-May-2008 17:35

Hi Rosemary, Your first and second examples filename will be loaded by rebol as type url!, so this could cause problems with unintended percent encoding of urls. I would avoid that way. Instead, you could use string! (as you have) for Windows local paths, or convert rebol file! types to Windows local paths. Eg. call rejoin ["notepad.exe " "c:\rebol\fred.txt"] call rejoin ["notepad.exe " to-local-file %"/c/rebol/fred.txt"] Note you might have to surround the local path with quotes when it contains a space. call rejoin [ {notepad.exe } {"} to-local-file %"/c/program files/fred.txt" {"} ] Something like that. Regards, Anton. Rosemary de Dear wrote: