wsh Questions
2
Solved
I am working on a VBScript that is to show the "Computer" icon on the desktop. I've been able to do one for IE using the following code, however as Computer is a "Special Folder" that does not seem...
Faints asked 11/5, 2016 at 19:10
12
Solved
I have a computer on a small network, so my ip is 192.168.2.100.
I am trying to get my real ip. I download the no-ip client but that just seems like a lot of trouble for such a simple thing.
I cr...
Nourishment asked 27/5, 2009 at 18:36
3
Whilst developing a Windows procedure using JScript, it seems that some string methods fail to work. In this example using trim, line 3 generates the runtime error:
"Object doesn't support this ...
Marker asked 19/7, 2015 at 23:11
3
Solved
I'm not sure if I'm doing something wrong, but I can't seem to run the following JScript through the Windows Script Host if I save it in a .js file with the UTF-8 encoding:
var name = "Hello world...
5
I wrote the following two functions, and call the second ("callAndWait") from JavaScript running inside Windows Script Host. My overall intent is to call one command line program from another. That...
Upheld asked 16/1, 2010 at 1:46
2
Solved
I know that one can sign a Windows binary executable file using signtool. So all this time I was under assumption that one cannot sign any of the files interpreted by Windows Script Host, such as J...
Cincinnatus asked 12/12, 2015 at 10:44
4
Solved
I'm doing a mash between VbScript and CMD, i can call the VBScript easily with
cscript.exe //NoLogo "%~dp0TASK.vbs" >>"%~dp0output.txt"
But I need to disable the feature of users clicking ...
Uhhuh asked 16/12, 2015 at 17:43
2
Solved
I am running a VBA macro from Word 2013. I'm trying to run an executable file which requires an argument/parameter of a filename. For example, c:\myfilefilter.exe filetobefiltered.htm
I would like...
2
Solved
I have a few git commands I would like to automate in a restrictive windows environment. I find myself running these same commands over and over, executing in Git Bash.
$ git cd "R:/my/directory/r...
1
Solved
I want to make a bat file that prompt user with a default value. All`s fine, I found a CScript way.
But i have a problem with special characters like pharanteses..
bat file is
set "mysql_passwor...
Loux asked 4/11, 2015 at 22:36
2
I'm working on some code that needs to parse numerous files that contain fragments of HTML. It seems that jQuery would be very useful for this, but when I try to load jQuery into something like WSc...
Sweetmeat asked 3/12, 2012 at 19:0
3
After recently upgrading from Excel 2010 to Excel 2013, I moved a custom add-in (.xlam) to the new Application.LibraryPath directory (C:\Program Files\Microsoft Office 15\root\office15\Library\BTRT...
2
Solved
I have the following powershell code calling WSHShell which will create a shortcut in the start menu for Win7/8 but am unable to figure out how to get powershell to pass the quotes needed around th...
Antoniettaantonin asked 4/8, 2015 at 17:7
3
Solved
I am attempting to write a VBScript that will list all of the installed application on a system in a text file or csv. I was able to find an existing code to list all of the software (including nam...
2
Is there a %* (batch files) or $* (bash script) argument list equivalent for VBScript ?
I want to retrieve the exact command line invocation.
Contrived example:
cscript //nologo script.vbs /ar...
Mohur asked 28/6, 2015 at 2:30
7
Solved
I'm trying to learn how to run Javascript (instead of VBScript) using CScript.exe, but when I try, I get an error:
cscript temp.js
Input Error: There is no script engine for file extension ".js".
...
Idoux asked 25/8, 2011 at 9:33
2
Solved
VBScript (.vbs) files can be run using either cscript.exe or wscript.exe.
What's the difference between these two options?
1
Solved
This is something I only found out about today is that JavaScript can be run through a windows command line.
So I found out that to run a javascript file in windows cmd.exe you use cscript.
My hw...
Alliterate asked 5/3, 2015 at 15:11
2
Solved
I'd like to create a COM object in C#, and use it via IDispatch from JScript. That part is pretty simple.
I also want to implement simple callbacks on the COM object, similar to the event exposed ...
Hemline asked 24/6, 2012 at 5:16
2
Solved
I created this script for a friend that cycles through a real estate website and snags email address for her (for promotion). The site offers them freely, but it's inconvenient to grab one at a tim...
Goofy asked 7/2, 2015 at 16:40
3
I want to run a vbs command from command line as I would in batch calling
cmd.exe /c "echo.Hello World! & pause"
Obviously this doesn't work
wscript /C MsgBox("Hello world")
I could print...
Mizzle asked 29/10, 2012 at 3:26
3
Solved
As QA I use WSH scripts to do auto upload, deployment and some time Web testing in IE. WSH(wscript) with JavaScript can open IE window, activate it and access DOM model to do some actions or verify...
3
Solved
How to convert .bas file to vbscript/exe or running from command line ?
I did script in Excel by MS Visual Basic for Aplications, but i can run this scrip only under Excel. How i can make this scri...
2
Solved
I'm not sure if JScript for WSH is available in every windows installation.
Which version of JScript is available for WSH, and in which windows version?
Please provide the link to an authoritativ...
Mcnulty asked 31/3, 2011 at 9:48
4
I want to find the title of the window which is currently active(having focus) using Window Script Host(WSH) because I want my WSH script to Sendkeys only If the desired window is active.
Note* I ...
© 2022 - 2024 — McMap. All rights reserved.