Windows pathway delimiter problem?

Frank D. Engel, Jr. fde101 at fjrhome.net
Thu Mar 24 13:24:30 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Windows uses the backslash as a delimiter, but Rev uses a slash  
internally.  Some routines will require you to specify with the  
backslash (such as shell()), but most places where you specify a file  
for Rev you will need to use a slash.

On Mar 24, 2005, at 12:17 PM, Steve Bonham wrote:

> Is the path delimiter in Windows a slash or a backslash?
>
> In my script I'm using slashes (/) but I'm getting a weird error msg  
> upon launching the Windows standalone.
>
> Here's the stuff in the on openstack script (which is used to read/set  
> prefs from a text file):
>
> put the platform into theOS
>   put the systemVersion into theVersion
>
>
>   set the itemDel to "."
>   put item 1 of theVersion into MacOS_X_or_not
>   set the itemDel to ","
>
> put the filename of this stack into MyPathWay
>   set itemDel to "/"
>
>   if theOS is "MacOS" and MacOS_X_or_not >9 then
>     -- OS X handles filepathways differently
>     -- delete last three directories of myPathWay
>           put the number of items of myPathWay into LastFolder2Delete
>         put LastFolder2Delete - 3 into FirstFolder2Delete
>     if item FirstFolder2Delete of myPathWay contains ".app" then
>       delete item FirstFolder2Delete to LastFolder2Delete of MyPathWay
>     else
>       -- must be a .rev file - no problem
>       delete last item of MyPathWay
>     end if
>        set itemDel to "," -- reSet to default deLimiter
>            else -- windows or X_x
>     if theOS is "Win32" then
>       put the number of items of myPathWay into LastFolder2Delete
>             delete last item of MyPathWay
>     else
>       --
>     end if
>         set itemDel to "," -- reSet to default deLimiter
>       else --linux --later
>       end if
>
>   put MyPathWay & "/TJsettings.txt" into PathWaytoTJsettings
>     answer "myPathWay = " & return &\
>   myPathWay & return &\
>   "PathwaytoTJsettings = " & return &\
>   PathWaytoTJsettings
>
> and the error msg reads:
> The application or DLL C:\(and the pathway to the text file I'm  
> reading preferences from with each item separated by backslash  
> characters) is not a valid Windows image. Please check this against  
> your installation diskette.
>
>
> I'm putting a jpg up that displays screencaps of these to clarify.
>
> It's at: http://academics.georgiasouthern.edu/cet/SB/errorcap.jpg
>
> Thx for any suggestions.
> Steve
>
>
> --  
>
>
> ----------------------------------------------------------------------- 
> ---------------------------
> Steve Bonham
> Director, Faculty Technology Development Laboratory
> Center for Excellence in Teaching - Georgia Southern University
> Statesboro, GA 30460-8143
> ----------------------------------------------------------------------- 
> ---------------------------
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten  
Son, that whosoever believeth in him should not perish, but have  
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCQwXe7aqtWrR9cZoRAkUHAJ4npcOnOuN35/ByKhLajMSMDwp5PACeIBBY
PtHqVw0LNxU/k7PNrK7/dDs=
=r+0u
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 200MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the use-livecode mailing list