Похожие чаты

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 ответов

11 просмотров

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

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

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

Ready for some fun AND a chance to win TKO Tokens? Join us for exciting minigames in our Telegram group! 🕒 Don’t miss out—games start on today 25 October 2024, at 8 PM! Ge...
Milkyway | Tokocrypto
255
Мужики и девушки, привет) в Вelphi xe7 в настройках во вкладке "Editor Options" далее " Color" есть список: "Elements", открыв который мы можем настраивать отображение разных...
Kraszx
14
VIP-392 [zkSync] New native USDC market in the Core pool Summary If passed, following the Community proposal “Support native USDC on Venus Core Pool of ZKSync Era” and the a...
Venus Announcements
1
is that okay?
Samurai 🇯🇵
21
Добрый вечер. Есть вопрос, а может и предложение. Был у меня диалог в другой группе о делфи и я задался вопросом: "А нельзя ли в делфи цвет //коментария и {комментария} сде...
Kraszx
24
How about the project bro Likes the community not that active ?
🅿️abby_FX
19
Я вот подумал. SSE выполняет операции максимум с 64-битной точностью. А FPU - всегда с 80-битной. Разве не должно быть FPU точнее тогда?
The Bird of Hermes
13
Guys, Donald Trump or Kamala Harris? It does not matter for Bitcoin in the long run!! 2020 Election: After Joe Biden's victory in November 2020, Bitcoin steadily rose from...
Sabah Shabu
3
как быть с принтером? такой подход прокатит?
zamtmn
12
Мдя, прикол, боевая сборка запускается (именно под отладчиком) после F9 примерно полторы минуты (97 секунд если быть точным). Начал копать - проблема детектится сразу - зависа...
Александр (Rouse_) Багель
38
Карта сайта