wsh Questions

4

Solved

How can I set the timezone in Windows from command line or from a batch file? Do I need to use powershell or cscript?
Sphincter asked 20/5, 2013 at 18:45

3

Solved

This is a very very (very!!!) strange problem. I have this JSCRIPT that runs on windows XP and 7 using dos CSCRIPT in a file called testJSON.js. if ( ! this.JSON ) WScript.Echo("JSON DOESN'T EXIS...
Familiarity asked 18/10, 2013 at 8:40

2

Edit: first things first The point of the vbscript is to act like a REPL or command prompt/bash environment, it is simplified to just reprinting the user input So in other words the cscript proce...
Aromatize asked 24/6, 2019 at 6:52

6

Solved

I have a web service load driver that's a Windows Script File (WSF), that includes some VBScript and JavaScript files. My web service requires that the incoming message is base64 encoded. I current...
Bartle asked 30/1, 2009 at 19:1

1

I have been trying to find any information on a value that is stored in an url shortcut that is generated from MS-Office for SharePoint Libraries. We are moving away from Office 2007 to Office 365 ...
Thespian asked 5/1, 2016 at 0:33

1

I am facing an issue while trying to open an image file from a Silverlight app in Windows 10 using WScript.Shell. The code is as follows. try { dynamic shell = AutomationFactory.CreateObject...
Lindyline asked 28/10, 2016 at 9:51

3

The problem: When I double click the .bat file it executes as expected. When I schedule it in Windows Task Scheduler it executes except the line that has cscript. Content of .bat file: @echo off ...
Blakey asked 27/9, 2012 at 18:56

2

I am creating a VB script on windows which opens a site in IE. What I want: Detect when the web page is loaded and display a message. I achieved this by using sleep (WScript.Sleep) for approx. seco...
Vladikavkaz asked 23/4, 2014 at 0:5

4

I'm looking to execute user supplied scripts from my Delphi application. Is it possible to host the Windows Script Host engine in my application and supply it with scripts to execute? Or, is there...
Mattern asked 6/8, 2009 at 13:58

3

I've been running my excel 2000 vba program with Task Scheduler and cscript and vbscript for about a year now. A few days ago it stopped working. I can run the program manually. Whenever Task Sched...
Brackett asked 9/3, 2013 at 0:31

6

Solved

I'm running a VBScript that may run under x64 Windows. I need to read a registry key from the 32-bit part of the registry. For that I use path HKLM\Software\Wow6432Node\xyz instead of HKLM\Software...
Tarton asked 17/2, 2009 at 10:48

3

I'd like to debug a vbscript with Visual Studio 2017 Community Edition and followed the steps mentioned here for VS2015: Video I entered cscript.exe /x foo.vbs in the commandline, but no debu...
Frontal asked 28/5, 2017 at 10:26

3

Solved

I want to check to see if a file exists and if it does, I want to open it and read the 1st line, If the file doesn't exist or if the file has no contents then I want to fail silently without letti...
Stansbury asked 23/8, 2011 at 13:26

1

I've got a script that installs a certain BP Program called iLink (Crosslink). The Script works fine and installs Java 6.21 and both Crosslink Components and also installs through DISM .Net 3.5 per...
Treharne asked 10/12, 2017 at 17:54

1

Solved

I have some simple Excel VBA code that opens non-Excel files like: Sub scriptTest() Set objshell = CreateObject("Wscript.Shell") objshell.Run ("C:\TestFolder\Book1.pdf") Set objshell = Nothing ...
Hose asked 5/10, 2017 at 19:29

6

Is there a foolproof way for the script to wait till the Internet explorer is completely loaded? Both oIE.Busy and / or oIE.ReadyState are not working the way they should: Set oIE = CreateObject...
Lynsey asked 25/4, 2014 at 17:6

6

Solved

After much experience scripting in the Unix/Linux open-source world, using languages such as Bourne Shell, Perl, Python, and Ruby, I now find myself needing to do some Windows XP administration scr...
Decoteau asked 6/4, 2009 at 19:49

2

Solved

I'm trying to create a shortcut through python that will launch a file in another program with an argument. E.g: "C:\file.exe" "C:\folder\file.ext" argument The code I've tried messing with: fr...
Anatolic asked 31/7, 2016 at 19:48

1

Solved

I want to automate a task for a telnet session on Windows so that I can run it multiple times using different values. I have a .wsf script for doing that task for one time with hard coded values. ...
Associate asked 4/4, 2017 at 13:46

2

Solved

If I have the following script (that just prints the first argument to the console): @if (@X)==(@Y) @end /* JScript comment @echo off cscript //E:JScript //nologo "%~f0" %* exit /b %errorlevel%...
Polythene asked 7/2, 2017 at 12:38

1

Solved

On Windows 7, I get an error for the following line in my VBScript: Set wsh = WScript.CreateObject("WScript.Shell") Error: Microsoft VBScript runtime error: Wrong number of arguments or inval...
Ides asked 5/1, 2017 at 15:31

5

Solved

Is is possible to read system environment variables in a Windows Scripting Host (WSH) VBS script? (I am writing a VBScript using Windows Scripting Host for task for a Cruise Control and want to pi...
Tyree asked 24/5, 2009 at 21:52

6

Solved

How do I include some "text" into a .txt format file without opening the same via a script on Windows?
Panslavism asked 25/2, 2011 at 15:35

2

Solved

I'm trying to use the new VT100 ANSI escape sequence capabilities available in the Windows 10 console with CSCRIPT (JScript). But I cannot get it to work. Here is a really simple JScript script: ...
Sallysallyann asked 5/8, 2016 at 0:29

5

Solved

What is the stackoverflow approved (and hence correct) method to force a VBS to run using cscript instead of wscript - irrespective of what the user tries? A quick Google search shows plenty of ex...
Freshwater asked 14/1, 2011 at 15:16

© 2022 - 2024 — McMap. All rights reserved.