Skip to main content

All Questions

Tagged with
1 vote
0 answers
87 views

How can I prompt the user to enter a value in WSH JavaScript?

I tried all the possible ways to enter a value from the user but none of those actually worked; I wrote these codes in my notepad and saved with .js extension; For example: 1. var input = WScript....
Flowinner 's user avatar
0 votes
1 answer
527 views

How to change the url of already opened chrome tab from internet explorer?

I have a web application and this app works on IE browser and i want to open a chrome browser from IE and later change the tab URL. It is like window.open() but in Chrome. I found the way to open a ...
elif erdil's user avatar
3 votes
2 answers
3k views

How do you do an alert / message / popup box using JScript on Windows?

I'm trying to do a Window alert on Windows 10 and it's not going so well. This is what I tried: window.alert("Alert"); And alert("Alert"); It doesn't matter if its in another ...
Alexander Bolte's user avatar
0 votes
0 answers
141 views

Wscript.exe task stacks and stresses CPU

SOLVED: I realized, that the process 'wscript.exe' is not essential to keep the program running if you let it sleep, so I just kill it with a batch file within the script after the ActiveXObject has ...
butcher's user avatar
  • 36
1 vote
1 answer
216 views

looping with interval wscript

Please help me, I want to modify this file should be like this Run script Execute For Loop 5 times Waiting 5 minutes Execute For Loop 5 times again waiting 5 minutes Execute For Loop 5 times again If ...
Kevin123 Kocak's user avatar
1 vote
1 answer
77 views

Why this XML script show message only once?

This code is from Microsoft script56.chm. Why does it show message only once? I'm learning Windows Script Host and running xml.wsf in Windows command line. <package> <job id="DoneInVBS"&...
magiclx's user avatar
  • 11
2 votes
0 answers
73 views

How to access UDP from Javascript running in WSH?

I am trying to access udp NOT from a browser but running from wscript. I see various solutions that depend on System.Net and System.Net.Sockets but none of them work. They all fail when I try to ...
Michael's user avatar
  • 31
1 vote
0 answers
209 views

JavaScript for date range is only working with in a limit

I am trying to find the dates between two dates. I am attaching the script I have been using. It is working only if the start date and end date falls in between 4 months. If it is more than that it ...
Rpadevs's user avatar
  • 11
0 votes
0 answers
174 views

Why can't I send a ( to SendKeys in JScript? [duplicate]

Why when I send a ( to WScript.CreateObject("WScript.Shell").SendKeys() in Microsoft JScript do I get the following error? C:\js\test.js(7, 9) Microsoft JScript runtime error: Invalid procedure call ...
leeand00's user avatar
  • 26.1k
1 vote
0 answers
1k views

Getting 'An error occurred in secure channel support'

I am using https url, I have done same task using java but there i have imported certificate in java.Java task is working fine. But my client requirement is,He want to write windows scheduler.That ...
Rahul Srivastava's user avatar
1 vote
3 answers
1k views

How to check if the * .js file is JScript or JavaScript?

I want to use *.js file both: on local web page on my pc (as JavaScript) and as WSH JScript when I double click *.js file. Is it possible to write a code running on both platforms? How to check is ...
Tom's user avatar
  • 23
0 votes
0 answers
779 views

How to convert a string from a file to an object with JS in .HTA without JSON.parse

I have a .HTA file with JS like this: <script> var fso = new ActiveXObject('Scripting.FileSystemObject'); var configsHandle = fso.OpenTextFile('configs.json', 1); var configs = configsHandle....
stckvrw's user avatar
  • 1,761
0 votes
2 answers
502 views

Can't set a new innerHTML for an element with JS in .HTA page

I'm trying to set a new innerHTML property for the head element of my .HTA page for example: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Some title</...
stckvrw's user avatar
  • 1,761
-3 votes
1 answer
70 views

Find "www." in a string in javascript [duplicate]

I have to make a function that finds when "www." Appears in a string, for example "Hey dude, check this thing: www.example.com/". I want it to determine when the url starts(in this case it would be ...
Maigol's user avatar
  • 7
1 vote
1 answer
679 views

set file attribute filesystemobject javascript

I have created a file as part of a script on a network drive and i am trying to make it hidden so that if the script is run again it should be able to see the file and act on the information contained ...
JamesHennigan's user avatar

15 30 50 per page
1
2 3 4 5
12