modula3 / cm3

Critical Mass Modula-3
http://modula3.github.io/cm3/
Other
139 stars 25 forks source link

Why is there JScript code in batch file? #1048

Closed jpgpng closed 2 years ago

jpgpng commented 2 years ago

https://github.com/modula3/cm3/blob/master/scripts/win/setup.cmd

VictorMiasnikov commented 2 years ago

I first time see / thinking about this file . . .

It looks like "history artifact"

VictorMiasnikov commented 2 years ago

About direct question:

JScript code

Why not? We can use and .vbs scripts

ghost commented 2 years ago

About direct question:

JScript code

Why not? Can can use and .vbs scripts

But you can't mix vbs code in a batch file do you? It seems you are even not able to distinguish vb script from jscript :facepalm:

ghost commented 2 years ago

Mixing jscript code in a batch file which is invalid batch file code renders this batch file will unable to run or just errorred out!

VictorMiasnikov commented 2 years ago

30.08.2022, 20:32, "va0dl914" @.***>: Mixing jscript code in a batch file which is invalid batch file code renders this batch file will unable to run or just errorred out!

May be - I never use this file. I.e. it is history artifact

VictorMiasnikov commented 2 years ago

30.08.2022, 20:30, "va0dl914" @.***>: But you can't mix vbs code in a batch file do you? It seems you are even not able to distinguish vb script from jscript 🤦

I don't know -)

I prefer Automate by Unisin (?) for serious task / "scripting"