know JavaScript but I never seen anything like this
the objects and functions are weird for me
When I see this code I think I know nothing about JavaScript
Is it pure JavaScript or something else?
because I searched for that in the docs but I found nothing
function run(){
WshShell= new ActiveXObject("WScript.Shell");
WshShell.Run("c:/Windows/System32/notepad.exe",1,false);
}
that's ActiveX, a terrible thing from IE
Yeah It only works on IE there is also WScript and shell and stuff like that What are those? how can I learn about them? It's something cool that you can open read write files locally on the computer using JavaScript
why do you want to learn ActiveX in 2021? if you want to work with the file system in browser (and you have to stay in browser for some reason, i.e. you can't use electron or something else), there are modern APIs for that, e.g. File System Access API
Look, I want something like this Reading a file from windows or writing something inside that file or delete it I saw WScript and I think It does this But I know nothing about it when I search about WScript It says It's a virus and It's way far from JavaScript For example I want to know about WScript and running shell commands using JavaScript
I want to know about WScript no you don't what are you trying to achieve here? you're having an xy problem here
All I want to know is this: What WScript is doing in JavaScript? I can't find this topic anywhere And I learned nothing about it
look it up on msdn if you really, really want to learn about this ancient stuff in 2021
Обсуждают сегодня