Linked Questions

0 votes
0 answers
118 views

windows vbs cannot get errorlevel when using curl & findstr [duplicate]

I'm trying to use the vbs script to curl an url then get the script errorlevel. but always got 6 returned. this can get the right errorlevel C:\Users\lo>curl -Iks https://www.baidu.com | findstr /...
lothario wu's user avatar
11 votes
3 answers
36k views

WScript.Shell.Exec - read output from stdout

My VBScript does not show the results of any command I execute. I know the command gets executed but I would like to capture the result. I have tested many ways of doing this, for example the ...
Daniel Marín's user avatar
5 votes
3 answers
21k views

JScript: how to run external command and get output?

I'm running my JScript file using cscript.exe. In the script I need to call an external console command and get the output. Tried: var oShell = WScript.CreateObject("WScript.Shell"); var oExec = ...
Putnik's user avatar
  • 7,034
2 votes
3 answers
8k views

Generating the hash value of a file

I have managed to gather code and tried to generate the hash value of a file, but in the present code I need to drag the file on the VBScript, then it gives the hash value. Can someone help me in re-...
user2703389's user avatar
3 votes
1 answer
4k views

VBScript - Capturing output from stdout

I know this has been answered one in another question, but I simply do not understand how it is done. I am trying to get the output of a command line program (Aria2 downloader) into a HTA script so ...
Ctrlaltdenied's user avatar
0 votes
4 answers
2k views

Selecting multiple files using VBScript

I'm using the following script in Windows 7/10 to open a file dialog and allow the user to select a file. It's not allowing me to select multiple files even with the multiple attribute added. ...
Fork's user avatar
  • 1
0 votes
0 answers
4k views

Running OSPP.vbs with VBScript

I'm writing a VBscript to inventory all the hosts info in our company network and output it to a xml which I plan accessing through php. So far so good Wmi manager solved almost all the data I needed (...
Fotkurz's user avatar
  • 123
5 votes
1 answer
1k views

Creating Simple Custom Context Menu Commands - How can a VB Script be made to run that uses the file path/name that was right clicked?

I downloaded a file and wanted to verify it's MD5 Checksum. 7Zip's file context menu output doesn't include an MD5 checksum, so I downloaded fciv.exe from the Windows site, and copied it into my ...
Rdt's user avatar
  • 53
1 vote
3 answers
2k views

Make sendKeys faster

I'm trying to create a program that will open "command prompt" and open a specific port using "sendKeys". Here is my code: Set Keys = CreateObject("WScript.Shell") oShell.ShellExecute "cmd.exe","...
Mr. Magic's user avatar
0 votes
0 answers
536 views

VBA how to check if download files from Server has success?

I'm able to use the below code to download files from server. However, this does tell me whether the files are downloaded successfully. Sub DownloadFirstRunFilesPart2() Application.StatusBar = "...
vivi11130704's user avatar
-1 votes
1 answer
315 views

Get output when using .run

I'm trying to run a program that will web scrape from Pastebin using PowerShell. I used the following code to do so: Set Wshell = CreateObject("WScript.Shell") Wshell.Run "%ComSpec% /c powershell &...
Mr. Magic's user avatar