Похожие чаты

Hello friends Can someone help me out with the code below? I

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);
}

8 ответов

12 просмотров

that's ActiveX, a terrible thing from IE

Iran- Автор вопроса
Artem Starikov
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

Iran
Yeah It only works on IE there is also WScript and...

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

Iran- Автор вопроса
Artem Starikov
why do you want to learn ActiveX in 2021? if you w...

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

Iran
Look, I want something like this Reading a file fr...

I want to know about WScript no you don't what are you trying to achieve here? you're having an xy problem here

Iran- Автор вопроса
Artem Starikov
I want to know about WScript no you don't what ar...

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

Iran
All I want to know is this: What WScript is doing ...

look it up on msdn if you really, really want to learn about this ancient stuff in 2021

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта