wsh Questions
7
Solved
I have some Excel VBA code that requires knowing the Downloads folder path. How could I do it?
Since you can move around the Downloads folder (and also Documents and most of those folders, via the...
Attributive asked 14/4, 2014 at 20:59
1
The error I'm getting:
Windows Script Host access is disabled on this machine. Contact your administrator for details.
From many websites you can find that making a file named: ["Enabled"...
Mousetrap asked 15/6, 2023 at 3:47
4
I would like to know what is default host for VBScript on particular machine, whether that is set to WScript or CScript ? For example, if I use cscript //h:cscript //s then is there any way I can c...
3
What is the future of Windows Script Host ?
Microsoft has announced, in may 2015, the end of VBscript and ActiveX in their new browser Windows Edge (and that's a good news for web standards, by th...
3
I have two small programs in VBS and JScript:
VBScript.vbs:
For i=0 To 255
WScript.StdOut.Write Chr(i)
Next
JScript.js:
for ( var i=0; i <= 255; ++i )
WScript.StdOut.Write(String.fromChar...
Dora asked 16/1, 2013 at 0:24
5
Solved
Set wshShell = WScript.CreateObject ("WSCript.shell")
wshshell.run "runas ..."
How do I get the results and display in a MsgBox
Drum asked 19/5, 2011 at 15:15
4
Solved
I have an instance of MSXML2.DomDocument.
I wave to save it, with indenting.
This code works, but does not indent:
var dom = new ActiveXObject("MSXML2.DomDocument");
// fiddle with dom here
d...
Crystallite asked 21/6, 2012 at 18:11
24
Solved
I need a way to recursively delete a folder and its children.
Is there a prebuilt tool for this, or do I need to write one?
DEL /S doesn't delete directories.
DELTREE was removed from Windows 20...
10
Solved
I know I have already answered a similar question (Running Batch File in background when windows boots up), but this time I need to launch a batch:
from another batch,
without any console window ...
Farinose asked 18/11, 2008 at 12:5
3
Solved
I need to call a .bat that calls a .vbs. When i run FindDir.vbs from command prompt is ok, but when i try to call it from CallingVbs.bat i got the error message.
'cscript' is not recognized as an...
Clannish asked 20/12, 2012 at 16:52
3
I am writing a VB Script to update some files on the network. Before beginning, I want to know if any of the files are locked. I'd like to do this before I actually do any updates.
I am aware that...
Ectomorph asked 6/9, 2012 at 12:59
1
Solved
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 s...
Kory asked 8/12, 2020 at 22:26
2
Solved
How could I modify this VBScript to return only the newest file's name and Last Modified date? Currently it returns anything modified in the last 24 hours. I want to look for the most recent file o...
2
Solved
I'm planning on using JavaScript to enter an informatics competition (BIO) tomorrow. However, I can't rely on the examiner having a browser with a decent JavaScript engine, so I was hoping to use M...
Potherb asked 14/12, 2010 at 15:49
7
Solved
I think I can't read a binary file with the Scripting.FileSystemObject class.
Can I do it with ADODB.Stream?
Something else?
I want to get an array of bytes.
thanks.
Lasky asked 28/5, 2010 at 3:35
1
I've got a .js file that's meant to be executed by Node.js on the command-line. I've got everything set up with npm and such to put the file into the user's path as a "bin". My problem is, because ...
Sarawak asked 9/6, 2014 at 2:58
2
Solved
I have been using JavaScript in Windows Scripting, both in .JS files and .WSF files, for several years, but I have found that there are some methods that are not recognized when I put them in a scr...
5
Solved
The question comes from code like this.
Set scriptshell = CreateObject("wscript.shell")
Const TIMEOUT_IN_SECS = 60
Select Case scriptshell.popup("Yes or No? leaving this window for 1 min is the ...
Celebrity asked 25/11, 2010 at 5:48
4
Solved
I've got a simple question:
What's the best way to execute a single WshShell command from a Windows batch (.bat) script?
(hopefully it's not creating a new file with VB code)
Musset asked 1/3, 2013 at 22:12
2
Solved
First to clarify this question is aimed to HTTP(s) download .For FTP may be I'll ask (and answer) another question.
Here are some similar questions - but I want to be more precise .
Besides exclud...
Heda asked 26/1, 2015 at 0:15
5
Solved
I have this script saved in "test.vbs":
Set FSO = CreateObject("Scripting.FileSystemObject")
Set File = FSO.OpenTextFile(workFolder &"\test.txt", 2, True)
File.Write "testing"
File.Close
Set File ...
Pheidippides asked 10/5, 2010 at 21:52
2
Solved
I would like to execute a simple VBScript/JScript generated by my application using the Windows Script Host (wscript.exe or cscript.exe) without generating a temporary script file.
I did not find ...
3
Solved
I use 2 different automatic configuration script addresses in the LAN settings of Internet Explorer 8. During the course of my work, I need to switch between them very often. Every time I have to d...
Rapids asked 19/2, 2014 at 6:8
2
I have been extensively using a custom protocol on all our internal apps to open any type of document (CAD, CAM, PDF, etc.), to open File Explorer and select a specific file, and to run other appli...
Enterprise asked 11/10, 2019 at 21:48
2
Solved
I'm trying to run a bat file using javascript. I've tried using powershell but it didn't seem to work properly. Here is the code I tried:
var oShell = WScript.CreateObject("WScript.Shell");
oShell...
Gray asked 23/3, 2017 at 20:4
1 Next >
© 2022 - 2024 — McMap. All rights reserved.