wsh Questions

4

Solved

i'm trying to automate a file download with Windows Script Host (JScript). i see ADODB.Stream has an Open method whose documentation makes it seem like it should be possible to open a HTTP URL and ...
Phenetidine asked 12/11, 2010 at 12:4

2

Solved

When you execute a file with .VBS, .JS or .WSF extensions via CScript.exe, they execute correctly: CScript vbsProg.vbs CScript jsProg.js CScript wshScript.wsf However, we may use //E:engine opti...
Pearly asked 31/1, 2013 at 15:20

7

Solved

After installing the new server, I am facing an issue. I have lot of .vbs files, all need to run in wscript, reason, I use all those command like WScript.Echo "hello" I want to be able to see the...
Inlaid asked 23/9, 2009 at 7:13

1

Solved

I'm trying to create a VB script to Navigate to a Website, SelectAll, Copy and then save the copied data from the clipboard to a text file, but I'm stuck! :( Here is what I got so far: With Crea...
Mccollough asked 29/1, 2014 at 16:57

3

Solved

Using .NET, I can write an app that hosts a scripting engine that complies with Microsoft's IActiveScript conventions. This includes JScript and VBScript from Microsoft, and also PerlScript, RubySc...
Merca asked 23/8, 2011 at 21:19

1

Please take this script into context with my question: If objFSO.FileExists("C:\Windows\Fonts\" & objFile.Name) Then Wscript.Echo "Font already installed: " & objFile.Name I want a VBS s...
Pacifier asked 19/12, 2013 at 15:29

1

Solved

I know that many similar questions have been asked before. The difference in my case is that I am using Windows Scripting Host and am running the script from the DOS command line, not from in...
Smarm asked 2/11, 2013 at 22:18

4

I'm building an HTA application in which I need to display a list of file with their associated system icon. I'm using FileSystemObject to list the file but there seem to have no way to get the ico...
Namedropping asked 26/8, 2011 at 0:9

3

Solved

I have the following workbook setup: Workbook A has a link to x amount of workbook B's and fetches data from them. The workbooks B have links to some other workbooks and fetches data from them. ...
Defrock asked 15/4, 2013 at 9:25

3

Solved

In a Javascript program that runs within WSH and creates objects, let's say Scripting.FileSystemObject or any arbitrary COM object, do I need to set the variable to null when I'm finished with it? ...
Moncear asked 29/4, 2011 at 17:51

3

I am confused on what I am doing wrong here... <script language="javascript" runat="server"> function GMTNow(){return new Date().toGMTString()} </script> <% Const AWS_BUCKETNAME =...
Halo asked 13/6, 2012 at 10:17

2

Solved

I am using VBScript to code some automation on excel. I have a MsgBox() within the code, and am looking for a way to close the pop-up window created by MsgBox() automatically without human interven...
Headless asked 31/12, 2012 at 18:51

0

I've been trying to consume a service using WSClient in WSDL mode, but the response is always a array with an empty string. I'm using WSO2 WSF for PHP(WSO2 Web Services Framework for PHP) and my P...
Neoterism asked 12/12, 2012 at 20:3

3

Solved

If I have a cscript that outputs lines to the screen, how do I avoid the "line feed" after each print? Example: for a = 1 to 10 WScript.Print "." REM (do something) next The expected output s...
Mulligan asked 24/5, 2010 at 14:29

7

Solved

I would like to send mail from a script on a Windows Server 2003 Standard Edition. I think the server setup is pretty much out of the box. The mail server is an Exchange one, and when you're on th...
Intracutaneous asked 30/9, 2008 at 9:8

1

I have a small command line JScript routine that I usually run from the command line using cscript in Windows. I'd like to be able to pass in arguments hopefully along the lines of... %:>cscript...
Cornucopia asked 16/6, 2010 at 14:50

1

Solved

I have a JScript script that runs using cscript.exe. It creates a shortcut on the desktop (and in the start menu) that runs cscript.exe with parameters to run another JScript script. It looks, in r...
Sateia asked 22/6, 2012 at 19:23

3

I am writing some server-side scripts using JScript and WSH. The scripts are getting quite long, and some common functions and variables would fit better in a general library script which I include...
Genagenappe asked 16/6, 2010 at 14:42

2

Solved

I'm using CScript to run a VBScript file, and I need to pass a command line to the script where the parameter includes both spaces and quotes. The entire command needs to be passed as one parameter...
Gnomon asked 10/4, 2012 at 15:30

10

I am creating a scripting language to be used to create web pages, but don't know exactly where to begin. I have a file that looks like this: mylanguagename(main) { OnLoad(protected) { Displa...
Lysine asked 13/3, 2010 at 11:43

5

Solved

Any good utilities out there for verifying VBScript syntax without actually running the script? What I'm getting at is if I do something like: If (year == "2005" && type == 1) Then ...
Thirtytwo asked 18/8, 2009 at 19:6

1

Solved

This is a snipet of code from my program: WSHShell = WScript.CreateObject("WScript.Shell") But for some reason, "WScript" is not declared. I know that this code works in VBScript but i'm trying ...
Mindszenty asked 6/3, 2012 at 19:7

1

Solved

I'm trying to write a VBScript (.vbs) script that uses the WScript.Shell Run() method, but it seems as though Run() can't find the file I'm passing in. I've boiled my script down to the following ...
Tallbot asked 24/2, 2012 at 15:2

1

Solved

What is the difference between cscript and wscript? Which is best for doing Telnet and FTP automation in Windows?
Audra asked 30/12, 2011 at 10:21

2

Solved

How to open a prompt dialog box in WSH usig JScript?? The only pop-up dialog I've found in the doc is the WshShell.Popup() method. But I need a way to request the user to enter a string, like the ...
Readus asked 10/2, 2009 at 12:41

© 2022 - 2024 — McMap. All rights reserved.