<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font face="Georgia">Not that I really need to know, but are those
      mixed forward and backward slashes ok? I thought you used one or
      the other depending on OS.<br>
      <br>
    </font>
    <div class="moz-cite-prefix">On 3/22/13 10:20 AM, Frank Shearar
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAJbhyRHn0t1800-sZ6L0RQUm-tDXzB6j_Ng2CkEqU23UbsxAcA@mail.gmail.com"
      type="cite">
      <pre wrap="">I'm scratched my itch for the moment, making my build tools
"relativise" the path to the script. I think it's still a bug that I
can't refer to a script via a full path, and raised
<a class="moz-txt-link-freetext" href="http://bugs.squeak.org/view.php?id=7732">http://bugs.squeak.org/view.php?id=7732</a>.

frank

On 22 March 2013 13:17, Frank Shearar <a class="moz-txt-link-rfc2396E" href="mailto:frank.shearar@gmail.com">&lt;frank.shearar@gmail.com&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">OK, I think I know what's going on.

I have a directory C:\Users\frank\squeak-ci. In that I run rake,
kicking off a build. That runs the following shell command -
C:/Users/frank/squeak-ci/target/Squeak-4.10.2-2612-src-32/Squeak4.10.2-2612.exe
 "C:/Users/frank/squeak-ci/target/TrunkImage.image"
C:/Users/frank/squeak-ci/update-image.st - from within
C:\Users\frank\squeak-ci\target, a dumping ground for various build
artifacts.

If I instead use ../update-image.st as the startup script, everything
works correctly. So a full path to the script fails, while a relative
path works.

frank

On 22 March 2013 12:59, Bob Arning <a class="moz-txt-link-rfc2396E" href="mailto:arning315@comcast.net">&lt;arning315@comcast.net&gt;</a> wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">seems like URL is only one option...

            scriptName isEmpty ifFalse:[
                "figure out if script name is a URL by itself"
                isUrl := (scriptName asLowercase beginsWith:'<a class="moz-txt-link-freetext" href="http://">http://</a>') or:[
                        (scriptName asLowercase beginsWith:'<a class="moz-txt-link-freetext" href="file://">file://</a>') or:[
                        (scriptName asLowercase beginsWith:'<a class="moz-txt-link-freetext" href="ftp://">ftp://</a>')]].
                isUrl ifFalse:[ | encodedPath pathTokens |
                    "Allow for ../dir/scriptName arguments"
                    pathTokens := scriptName splitBy: FileDirectory slash.
                    pathTokens := pathTokens collect: [:s | s
encodeForHTTP].
                    encodedPath := pathTokens reduce: [:acc :each | acc ,
FileDirectory slash , each].
                    scriptName := (FileDirectory default uri
                        resolveRelativeURI: encodedPath) asString]].
        ]. ]

did you try a plain old file path?

On 3/22/13 7:53 AM, Frank Shearar wrote:

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>
      </blockquote>
      <pre wrap="">

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