Questions tagged [wscript.shell]
The wscript.shell tag has no usage guidance.
wscript.shell
66
questions
2
votes
2
answers
89
views
Input Simulation (Win + A) In PowerShell
I have a Python Script to enable/ disable Airplane mode using input simulation which works fine:
Win + A : To Open Action Center
Right Arrow (twice) : Navigate to Airplane toggle
Space : To Press OK
...
0
votes
1
answer
30
views
VBA String variable limitation for PowerShell output of File list in a folder
I am trying to export file properties of all files in a Root Folder and Subfolders. This is a huge file DB with around 300000 files. I have been using PowerShell for this purpose but the string ...
0
votes
0
answers
118
views
Powershell script to launch my web app in chrome with maximized window
I want to create a power shell script that can launch my web application on Chrome.
Also to launch it in maximized window size.
Below is the related ps1 code:
$flags = "--app=$appUrl --start-...
0
votes
0
answers
24
views
How to print output file using CMD BATCH and vba
What arguments should I type after CMD BATCH args to produce an output file called my file.log?
Dim shell As Object
Set shell = VBA.CreateObject("WScript.Shell")
Dim ...
0
votes
0
answers
57
views
Powershell output blank on 1 computer but not on other
I wrote some code to return the ip address of the local computer. Basically I created a powershell script which has just 1 line of code in it:
Invoke-RestMethod -Uri ('https://ipinfo.io/')
Then in vba,...
0
votes
0
answers
9
views
Wanting to Launch the Power User Tasks Menu on Windows 11 WINDOWS+X+U+S (FOR SLEEP 0)...SO CAN WAKE EASY MOVE MOUSE.. Does anyone have simple solution
Wanting to Launch the Power User Tasks Menu on Windows 11 WINDOWS+X+U+S (FOR SLEEP 0)
This is so CAN WAKE Windows 11 EASILY VIA MOVE MOUSE.. Does anyone have simple solution?
Thanks in advance.
Tried ...
0
votes
1
answer
298
views
VBA Wscript.Shell Run — how to run a script with high priority?
I'm want to run my python script from Excel VBA and this code works:
Dim newShell As Object
Dim PythonExePath As String, PythonScriptPath As String
Set newShell = VBA.CreateObject("Wscript.Shell&...
2
votes
1
answer
536
views
Set icon for powershell wscript.shell popup
I am trying to set an icon for my wscript.shell. Not the notification icon, but the actual form icon, where the title bar is. Icon is not one of the properties, so is this even possible? It seems like ...
0
votes
0
answers
102
views
vba WScript.Shell to run exe with JSON string as argument
I'm attempting to run an exe via command line that requires a JSON string as an argument. Inside that JSON string are dynamic start/end date variables, and a file name variable.
I'm able to run the ...
0
votes
0
answers
85
views
Is there a way I can see a error for my script file?
I'm trying to figure out why my script isn't running It don't show no error code nor does my script work. Is there a way I can see what the issue is?
Set WshShell = Server.CreateObject("WScript....
0
votes
1
answer
77
views
sendkeys doesn't work inside github API (command line)
I'm trying to automate the creating of remote repos using powershell and gh repo create and the first thing that happens after running that command is an option to create a new repo on GitHub or push ...
1
vote
0
answers
41
views
Why can't I redirect error output from cscript to a text file when I'm calling it from another VBScript? [duplicate]
Alright, so I'm pulling my hair out over this one. I have a VBScript that calls other VBScripts, and I need it to output the errors to text files, since the scripts should be running non-interactively....
1
vote
3
answers
7k
views
method run object iwshshell3 failed vba
I am trying to automate file upload on chrome with this VBA:
Dim Customer_rates As String
Dim WshShell As Object
Customer_rates = "D:\FX Exch. Rates\2022-Feb-24 1707\...
0
votes
0
answers
310
views
Microsoft vbscript runtime error object doesnt support this property:WScript.CreatObject
Basically when I run the .vbs file it gives me the error from line one:Object doesn't support this property or method:"WScript.CreatObject"
mySecret = inputbox("enter text to be encoded&...
0
votes
1
answer
661
views
How to run powershell script file from JScript?
I am trying to run powershell script from JScript.
powershell will pop up but the script is not getting executed.
Below is the sample code
var WSH = new ActiveXObject("WScript.Shell");
var ...