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

[REBOL] Re: Windows: Shortcut to scripts

From: greggirwin:starband at: 6-Oct-2001 12:09

Hi Robert, << I'm trying to create a LNK file with the normal Windows process. But I'm not sure why the normal Windows LNK way doesn't work. It could be that the Rebol interpreter doesn't use the information about the start-in directory from the environment. >> I don't know either. Maybe REBOL changes to the scripts directory itself. As another workaround, you could add the working directory to the Target of the shortcut: C:\Rebol\rebol.exe c:\rebol\gregg\read-cur-dir.r //rebol and then in your script you could change directories yourself: change-dir to-file dirize system/script/args Not what I would call elegant, but not too painful either. --Gregg