Skip to main content

All Questions

Tagged with
0 votes
1 answer
10k views

How to write a script to automate Putty (PLINK) on Windows 10

I am doing a manual process that is done each day within Putty and wanted to automate it. There is no need for a person to do this because all of the keyboard inputs do not change each day. I'm trying ...
HonoraryTitle's user avatar
-3 votes
1 answer
156 views

VBScript keeps turning errors such as declaration expected on line 10 and others

I seem to be having some problems on line 10 there. There are probably other errors as well. I've run debug to try and isolate the problems, any help is greatly appreciated. Option Explicit On Dim ...
SomDingWong's user avatar
8 votes
2 answers
5k views

JavaScript version used by the Windows Scripting Host

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 script ...
JDMorganArkansas's user avatar
2 votes
1 answer
818 views

How to find Windows Script Host languages installed

How do I find out what WSH (Active Scripting) languages are installed on a machine? I know that JScript and VBScript are installed by default, but how do I find out if, for example, Python is ...
Optimax's user avatar
  • 1,584
1 vote
2 answers
11k views

Remote Powershell popup message

I'm attempting to create a remote powershell popup window to any users logged into a target computer. I have found a simple script that does create a popup window: (New-Object -ComObject wscript....
Maumee River's user avatar
9 votes
2 answers
16k views

Scripting Git Commands in Windows

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/...
o.carltonne's user avatar
3 votes
3 answers
10k views

How to comfortably monitor variables in a VBscript during development process? (e.g. in a continuously opened command window)

I need to write a huge VBscript to automatically run an application and I'm looking for a way to comfortably monitor what I'm actually doing, in other words, to display the values of some/all ...
Robert Seifert's user avatar
-1 votes
2 answers
809 views

Extracting strings and writing to a new file

I was googling around but didn't find the right answer, perhaps people from here are willingly and able to help me. I'm very new to VBS or WSH and I like to have a solution for this problem: I'm ...
user2648359's user avatar
0 votes
1 answer
2k views

Rename a vbscript process

When we run a *.vbs file, in processes, we used to get "wscript.exe". We can change this "wscript.exe" to our custom name by creating a shortcut and executing the shortcut. Is it possible to display ...
Gokul Nath KP's user avatar
7 votes
3 answers
4k views

Updating values from external workbook automatically

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. ...
John Snow's user avatar
  • 5,284
2 votes
1 answer
2k views

How to download a webpage with incorrect character encoding using Windows scripting?

I'm trying to download this test page http://173.192.48.92/test.php using JScript under WSH. I'm using the WinHttp component like this: WinHTTP = WScript.CreateObject('WinHttp.WinHttpRequest.5.1') ; ...
GetFree's user avatar
  • 41.9k
0 votes
1 answer
2k views

How to ignore utf-8 encoding errors when using WinHttp under WSH?

I'm using the following script to get the content of a URL: WinHTTP = WScript.CreateObject('WinHttp.WinHttpRequest.5.1') ; WinHTTP.Open( 'GET', theUrl ) ; WinHTTP.Send() ; var content = WinHTTP....
GetFree's user avatar
  • 41.9k
1 vote
1 answer
110 views

How to search for a variable in a text file using VBS

Need help with a piece of code I'm writing. I'm new to scripting so please forgive. Basically in the code below I have intBusyThreads increment by 1 everytime it finds the text "Busy working Thread ...
user1857305's user avatar
1 vote
1 answer
207 views

Windows, WSH: Open a random available port?

How can I open random free (available) port on Windows, using Windows Scripting Host? Preferably JavaScript. There's the "HNetCfg" object, but I couldn't find any official docs for it (MSDN?).
Ondra Žižka's user avatar
1 vote
2 answers
5k views

How to automate telnet and ftp in windows vbscript effectively with using wscript sendkeys

I am running the following VBScript file: set WshShell = WScript.CreateObject("WScript.Shell") WshShell.run("telnet.exe 10.10.10.10") WScript.Sleep 500 WshShell.SendKeys"root" WshShell.SendKeys("{...
rashok's user avatar
  • 13.2k

15 30 50 per page