std.path.getName(): Screwy by design?
Denis Koroskin
2korden at gmail.com
Thu Mar 3 14:24:57 PST 2011
On Fri, 04 Mar 2011 00:10:28 +0300, Jesse Phillips
<jessekphillips+D at gmail.com> wrote:
> Denis Koroskin Wrote:
>
>> > No you cannot. What happens is that you *open* them with the
>> > default application, which just happens to be an interpreter whose
>> > default action is to run the script. Try renaming a .exe into .js
>> > and it will not run, whereas on Unix it would.
>> >
>> > Jerome
>>
>> Double-click? Yes. Running from console? No.
>>
>> Didn't believe it until I tried it myself, too.
>
> Hmm, I get an error from the MS Javascript interpreter.
Checked again with .js extension. Works like a charm (Windows 7). Are you
sure you running it from console and not using double-click? Start->Run
doesn't work either, but launching CMD and typing test.js works.
More information about the Digitalmars-d
mailing list