Tagged Questions
0
votes
0answers
105 views
Jscript write binary file, from the binary array of integers
I have the rar archive written in a binary array of integers like so:
var rar = [11,24,34,46,32,110]; // etc cut here for example
I'm trying to write it on the disk, but when i try to write on disk ...
2
votes
1answer
477 views
Detect if JScript is running elevated?
I have a JScript that is designed to run on a Windows platform in a .js file (not a web browser script.) Can I detect if my script is running elevated, or with administrative privileges?
0
votes
0answers
528 views
What can cause Scripting.FileSystemObject.OpenTextFile() to fail?
We've got a (non-web) application that uses Javascript to extend its functionality. At one point, there's a script command that creates a Scripting.FIleSystemObject ActiveX object and calls ...
0
votes
1answer
482 views
dynamically loading and unloading Javascript files within a Windows Script File (WSF)
I would like to be able to dynamically load a Javascript file within a WSF. There is no DOM I don't think, but if there were, I could try something like:
function addJavascriptFile(filename) {
...
0
votes
2answers
3k views
How to determine if a given path is a file or folder?
what is the simplest way to determine if a given path is a folder or file using Jscript?
0
votes
2answers
290 views
Port listening with JScript
I'm Trying to write a plugin for NotePad++ using NppScripting - a platform for writing plugins using javascript (specifically - JScript).
I was wondering if there was a way (probably via ...
3
votes
1answer
974 views
FTP files in Windows Scripting Host?
What is the recommended way to transfer files via FTP and manage (rename, move, delete) files in an FTP server programmatically in a Windows Scripting Host script file (JavaScript/VBScript)? ...
16
votes
4answers
8k views
How can I create a javascript library in a separate file and “include” it in another?
First, a caveat. The main script is not run in a webpage. I will be running the .js file in Windows using Windows Script Host.
The problem:
I would like to create a javascript "library" containing a ...