Questions tagged [wscript.shell]
The wscript.shell tag has no usage guidance.
wscript.shell
40
questions with no upvoted or accepted answers
2
votes
1
answer
2k
views
CreateObject("WScript.Shell").Run Path with spaces can not find file
I am receiving a error when running a WScript.Shell Run with a path that has a spaces in it.
I've tried several different variations that result in the same error.
CreateObject("WScript.Shell").Run "...
2
votes
0
answers
477
views
Waiting for an application to close before continuing script
For years, the following code I wrote has worked to launch Firefox from a script and then perform a set of actions after the user closes it.
/* Launch Firefox and then wait for the user to close it */...
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\...
1
vote
0
answers
55
views
Unequal multiple ping - VBA
I made a tool in Excel to catch pings from several IP but it has a problem when I set -n parameter on bigger value. First IP works good but next ones are delayed and I have to break them manual.
...
1
vote
1
answer
216
views
looping with interval wscript
Please help me, I want to modify this file should be like this
Run script
Execute For Loop 5 times
Waiting 5 minutes
Execute For Loop 5 times again
waiting 5 minutes
Execute For Loop 5 times again
If ...
1
vote
1
answer
1k
views
Classic asp VB Wscript output
Thanks for reading / helping.
On an old win2003 server, in this scenario:
Const WshRunning = 0
Const WshFinished = 1
Const WshFailed = 2
Dim shell, exec, strOutput
Set shell = CreateObject("WScript....
1
vote
0
answers
100
views
Wscript.Shell.Sendkeys swallows letters randomly when used together with AppActivate
Okay this is weird behaviour, I'll try to describe it well: I've written a very short C# program which sends the names of all *.png files on my Desktop to notepad. First I start notepad.exe, check the ...
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
138
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
11
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
0
answers
104
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 ...