<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">seems like URL is only one option...<br>
      <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; scriptName isEmpty ifFalse:[<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "figure out if script name is a URL by itself"<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; isUrl := (scriptName asLowercase
      beginsWith:'<a class="moz-txt-link-freetext" href="http://">http://</a>') or:[<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (scriptName asLowercase
      beginsWith:'<a class="moz-txt-link-freetext" href="file://">file://</a>') or:[<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; (scriptName asLowercase
      beginsWith:'<a class="moz-txt-link-freetext" href="ftp://">ftp://</a>')]].<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; isUrl ifFalse:[ | encodedPath pathTokens |<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; "Allow for ../dir/scriptName arguments"<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pathTokens := scriptName splitBy:
      FileDirectory slash.<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pathTokens := pathTokens collect: [:s | s
      encodeForHTTP].<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; encodedPath := pathTokens reduce: [:acc :each
      | acc , FileDirectory slash , each].<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; scriptName := (FileDirectory default uri <br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; resolveRelativeURI: encodedPath)
      asString]].<br>
      &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ]. ]<br>
      <br>
      did you try a plain old file path?<br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 3/22/13 7:53 AM, Frank Shearar
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJbhyRFf7g8moUCWJtScjDFX2HRV-cHMg1FR_=S2y520T9booQ@mail.gmail.com"
      type="cite">
      <pre wrap="">On a Linux machine, you can run a script from the command line thusly:
my/path/to/vm/squeak MyImage.image path/to/my/script.st. On Windows,
the analogous operation fails because (I think) CodeLoader doesn't
know how to handle file URIs like
'<a class="moz-txt-link-freetext" href="file:///C%3A/Users/frank/squeak-ci/target/update-image.st">file:///C%3A/Users/frank/squeak-ci/target/update-image.st</a>'.

Is this a known problem? How else can I run a startup script on
Windows? (Surely I'm not the only person in the world who wants to do
this?)

frank


</pre>
    </blockquote>
    <br>
  </body>
</html>