[7.7.1] asFilename fail on Windows XP

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
J G
Reply | Threaded
Open this post in threaded view
|

[7.7.1] asFilename fail on Windows XP

J G

On Windows XP,

        'e:/cincom/vw7.7.1/' asFilename
now answer =>
        ecincomvw7.7.1
which is wrong.
 

Best Regards,

Jim G

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [7.7.1] asFilename fail on Windows XP

Steffen Märcker
That's because the file seperator is backslash instead of slash on  
windows. The easiest way to construct a filname that works on windows and  
*nix platforms ist to use the binary message \, which inserts the right  
seperator for you. E.g.
'e:' asFilename \ 'cincom' \ 'vw7.7.7'

Regards,

Am 28.08.2010, 23:02 Uhr, schrieb J G <[hidden email]>:

> On Windows XP,
>
>         'e:/cincom/vw7.7.1/' asFilename
> now answer =>
>         ecincomvw7.7.1
> which is wrong.
>
>
> Best Regards,
>
> Jim G
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
J G
Reply | Threaded
Open this post in threaded view
|

Re: [7.7.1] asFilename fail on Windows XP

J G
Hi, Steffen,
Odd enough that
  'e:' asFilename \ 'cincom'
doesn't work either and one must say
  'e:\' asFilename \ 'cincom'
instead.


2010/8/29 Steffen Märcker <[hidden email]>
That's because the file seperator is backslash instead of slash on windows. The easiest way to construct a filname that works on windows and *nix platforms ist to use the binary message \, which inserts the right seperator for you. E.g.
'e:' asFilename \ 'cincom' \ 'vw7.7.7'

Regards,

Am 28.08.2010, 23:02 Uhr, schrieb J G <[hidden email]>:


On Windows XP,

       'e:/cincom/vw7.7.1/' asFilename
now answer =>
       ecincomvw7.7.1
which is wrong.


Best Regards,

Jim G



--
Best Regards,

Jim G

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc