Skip to main content

All Questions

Tagged with
0 votes
0 answers
51 views

Unable to redirect output from VBA with cmd in hidden mode

Am trying to redirect output from cmd to a text file using Wscript.shell script. It works when cmd window is in active mode. But doesn't work with cmd windows style is 0 (hidden mode). Dim objShell : ...
Manoj's user avatar
  • 15
0 votes
1 answer
644 views

Windows script Host problem.. error code 800a000D..Type mismatch "Clnt"

Hi I'm windows 10 user with little to zero knowledge about programming. An error came up and windows fail to load... when I my pc opens a dialog box appears.. "Windows script Host" what is wrong with ...
Andreas Tsantes's user avatar
0 votes
0 answers
33 views

Are there any interactive shells for Windows Script Host environment

As the title suggests, I am looking for a Python like interactive shell for Windows Script Host. I want to analyze for example, the object that is returned by GetObject("winmgmts:").InstancesOf("...
user1720897's user avatar
  • 1,246
2 votes
0 answers
535 views

Python script suddenly no longer running when being called by VBA

EDIT: I made an error when posting below in saying that it worked when running from terminal (I must have tested earlier.) This problem was solved by using the python.exe program in the environment (...
slny06's user avatar
  • 67
1 vote
0 answers
759 views

VBScript behaves weirdly using SendKeys to send a new line

I'm working on a very simple VBS script and I've ran into a really weird problem: I was originally using this code: Set wshShell=wscript.CreateObject("WScript.Shell") WScript.Sleep(2000) Dim i i = ...
8bit_coder's user avatar
0 votes
1 answer
2k views

Excel VBA to start shell script in background with specified environment

I want use an Excel macro to start a python script to run in the background. I have to be able to specify that it use the system PATH (I don't want to assume where python is installed) as well as a ...
feetwet's user avatar
  • 3,388
0 votes
1 answer
1k views

How to run shell script as a client side hook script for tortoiseSVN?

I have written the shell script and i am trying to put that script as a client side hook script but not getting the script engine which one i should be using to run .sh file.Usually as i have seen .js ...
K.John's user avatar
  • 13
1 vote
1 answer
125 views

Trouble getting WScript.Shell to work from HTA page

I have a private HTA application that I want to launch bat files and regular cmd functions (cd, delete, etc.) from. My script follows: <script type="text/javascript"> var SHELL = new ...
BigMac66's user avatar
  • 1,538
0 votes
1 answer
785 views

Command in multiple shell windows for multiiple telnet connection

i've searched a lot without any results, and so i'm ansking to you! I want to open multiple windows shell, and then load different telnet connection to send the same commad to different computers. I ...
Frederick J. Lavishlion's user avatar
2 votes
1 answer
3k views

Can't run DIR from WScript Shell in VBA?

I use the following function in a lot of my VBA projects. I initially added the reference to Windows Script Host Object model to take advantage of Intellisense, but then switched to late binding so I ...
Tim's user avatar
  • 2,852
0 votes
1 answer
531 views

WSHShell on WinServer 2012. ExpandEnvironmentStrings doesn't return %computername% and %sessionname% variables

I'm taking a script that supposed to return %COMPUTERNAME% and %SESSIONNAME% environment variables. I'm running that script on WinServer 2008 and it works fine. I'm running that same script on ...
PanCotzky's user avatar
  • 564
1 vote
1 answer
2k views

Current charset of the windows script host

I write script (js or vbs, not significant) with Windows Script Host that creating .bat file. I want to convert ANSI string to OEM with ADODB.Stream I may get current OEM code page with Split(...
Ezhik's user avatar
  • 874
1 vote
1 answer
2k views

Javascript to load putty to a specific ssh host

I am trying to create a website that has links and depending on those links it will load putty with an ssh connection to a specific host. ( this is to be used internally and ie 6) so far i have ...
CBR's user avatar
  • 21
2 votes
1 answer
15k views

wshShell.Exec Error 80070002 "The system cannot find the file specified"

I'm trying to use either wshShell.Exec or wshShell.Run to run a script through another script. I have tried both methods, and both methods give me the same error. I've Googled the issue and can't find ...
Adam Harvey's user avatar
1 vote
1 answer
2k views

VBSCRIPT: TRACERT and PING a WEBADDRESS and write to text file without command promot popup

I need to write a diagnostic utility in VBS which i will package in my windows application installer. I want the utility to run silently when the user is installing the application. I tried: Set ...
user3616625's user avatar

15 30 50 per page