Skip to main content

All Questions

Tagged with
0 votes
1 answer
67 views

WSH/Javascript: how to access collection items [duplicate]

I am writing a JavaScript that shall be executed in Windows Scripting Host on the command line with cscript.exe. I need JSON parsing, so I decided on JavaScript instead of VBScript. Now I am trying to ...
Robert Pollai's user avatar
-1 votes
1 answer
30 views

How to list all environment variables in JScript [duplicate]

My prog.js looks like this: var WshShell = WSH.CreateObject("WScript.Shell"); var env = WshShell.Environment("PROCESS"); WSH.Echo(env.Length); // 46 WSH.Echo(env("OS")); ...
pts's user avatar
  • 85.7k
0 votes
0 answers
30 views

How to encode a string in base64 in JScript [duplicate]

Well, i think the title is pretty clear, how to encode a string to base64 in JScript? While researching online i found this: How to decode a Base64 string in JScript Yeah, intresting (for Decoding), ...
root823746374's user avatar
-3 votes
1 answer
82 views

Why script hangs the host process when buffer size increases to 4MB?

We have added Process class to execute a script. Main method of the script file is defined in the next section. When Script executed the WaitForExit() method of Process class returns false every time ....
KnowledgeIsPower's user avatar
0 votes
0 answers
350 views

Batch scripting - how to pass a flag into a loop and modify the flag if condition met

I am new to scripting and I found this script online that seems to do what I need after I tweaked it a bit. I am trying to close a popup window once it opened, once the popup window opened I need a ...
Roman's user avatar
  • 61
0 votes
0 answers
540 views

Executable binary file not working after XOR encryption and decyption

I want to encrypt an exe file (file.exe), write the encrypted version to a text file (fileenc.txt) and decrypt the data in the text file back to another exe file (filedec.exe). file.exe and filedec....
splendorkafta's user avatar
0 votes
1 answer
300 views

Encrypt binary file with xor Jscript WSH

When encrypting string using xor encryption, things work well. But when dealing with bytes, it does not work for. It throws error at k.charCodeAt(0) Please what could be the problem? This is my full ...
splendorkafta's user avatar
2 votes
2 answers
2k views

Found this script plus the exe file in my app data folder. I wonder what does this do. Is this a backdoor script to record my key stroke entry?

I recently found a WS folder with in my app data folder, containing a "ws.exe" file, with a script file in the same folder, also there is shortcut added to my startup folder with below ...
Alex Huang's user avatar
1 vote
1 answer
203 views

Where can I find the doc for the function GetObject in Microsoft Javascript?

I cannot find the doc for the function GetObject available in Microsoft Javascript. I tried with no luck https://learn.microsoft.com/en-us/search/?terms=javascript%20getobject where I found https://...
Alessandro Jacopson's user avatar
2 votes
2 answers
329 views

Getting a response from a wsh script

In my HTA app there are some actions which are executing some heavily time-consuming tasks on a server. For example an action uses an old ActiveX component to read some fileproperties (like Subject ...
Teemu's user avatar
  • 23.3k
0 votes
1 answer
1k views

Using htmlfile COM object to access the .getOwnPropertyDescriptor() method of an object in WSH JScript

In the comments of this question, I was told that the .getOwnPropertyDescriptor() method isn't supported in ES3 ..., so it probably isn't supported in JScript [either] and that is indeed what I see ...
Foad S. Farimani's user avatar
0 votes
0 answers
193 views

Getting Invalid root in registry key when running CScript.exe from a windows Cmd file

I am running a test.cmd file from a C# exe by creating a System.Diagnostics.Process. The test.cmd is launching a JScript file using the Windows Scripting Host Command Line as below C:\myfolder>...
user3248103's user avatar
0 votes
1 answer
337 views

How can I split the file and output it with Webpack? This is to avoid the WSH capacity limit

I'm not native English, so I'm sorry if it feels difficult to read. I am creating a library. https://github.com/standard-software/partsjs/tree/v9.2.0 I'm building with Webpack and it's comfortable to ...
s.yamamoto's user avatar
-2 votes
1 answer
177 views

Proper file transclusion for classic JScript

I want to have something like C's #include directive or Python's import() function. I would appreciate it if you consider that this is not a Javascript, VBScript, nor a JScript.Net question. I want ...
Foad S. Farimani's user avatar
-1 votes
1 answer
272 views

One WSH JScript instance to communicate to the StdIn and StdOut of another instance

I want a JScript instance to send a string to the StdIn of another JScript instance; let the other one processes it and then read the returned StdOut results. Consider the code block below: // ...
Foad S. Farimani's user avatar

15 30 50 per page
1
2 3 4 5
12