Skip to main content

All Questions

Tagged with
-1 votes
1 answer
87 views

If Statement for VBScript is not Working. No Errors when executing script [closed]

I am trying to create a script that reads the contents of a file and reacts to certain error messages. So far everything is working as intended; however, I cannot get the 'If' statement to perform any ...
Terrence Busby Terrence209's user avatar
0 votes
0 answers
43 views

Getting Error (800A01A8) When Creating Folder Network Share with WMI in VBS [duplicate]

I'm trying to create a network share for a folder using .vbs. However, when I attempt to set up the share with WMI, I encounter an 800A01A8 error. The folder creation works fine, but when I use the ...
Atlassay's user avatar
1 vote
1 answer
669 views

List all the wifi around me

I have barely started vbs so I am new. I need help trying to show all wifi networks available around me. I am trying to fit it all in one msgBox. Here is my code so far. Set objShell = CreateObject(&...
coder9927's user avatar
  • 190
1 vote
1 answer
87 views

Why does this VBScript run fine in Excel VBA but as a stand alone vbscript?

I wrote this VBscript to create a zip file and then copy a folder into it. When I run the script as a Sub in excel it creates the file and copys the folder into it perfectly but when I run it as a ....
Tm1985's user avatar
  • 47
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
0 votes
0 answers
157 views

What's the best way to write a script to add windows 10 notifications natively, (i.e. without BurntToast)

I need to be able to display a notification on Windows 10. On a Mac I'd just execute a quick AppleScript: osascript -e 'display notification "That’s all folks" with title "So long..." subtitle "......
Dycey's user avatar
  • 4,715
0 votes
2 answers
1k views

Read Emails from outlook mailbox

Outlook product version : 16.0.1073020348 So I made an script to read emails and insert them into a DB. The problem: The script is reading currently from my Inbox(red flag) and not from the shared ...
Jonxag's user avatar
  • 787
0 votes
1 answer
506 views

Read the contents in a text file and replace it with specified text in another text file using VBS

I've been trying to create a VBS script to read the contents of text in one text file and replace it with specified text located in another text file. I'm trying to get the following script to read ...
Space Tech's user avatar
1 vote
2 answers
118 views

UFT 14.x cannot execute ctrlC+ctrlV in IE

I need a solution for this error Before using UFT 14.x , I wrote my code on UFT 12 (on windows 7) for copy/paste function. (It worked 100%) When I upgraded UFT to 14.x , that function respond with an ...
D.P's user avatar
  • 11
1 vote
1 answer
305 views

Count Items in file using VB

Kind of new to VBS. I'm trying to count the fields in the file and have this code. Col() Function Col() Const FSpec = "C:\test.txt" Const del = "," dim fs : Set fs = CreateObject("Scripting....
shane1717's user avatar
0 votes
1 answer
116 views

Is it possible to run wcript.exe in elevated mode when doubleclicked in Windows explorer?

I currently have a huge number of VBS Scripts which are, when doubleclicked in Windows Explorer, run by wscript.exe. These scripts need to be run in UAC elevated mode, i.e. doubleclicking by default ...
Erik's user avatar
  • 2,456
0 votes
1 answer
661 views

Constant Variable Re-defined?

I'm using a VBScript to pick out certain parts of a .txt file based off of a pattern, and then outputting that into another .txt file. The VBScript is launched from a batch file (.BAT), and the part ...
user avatar
0 votes
2 answers
273 views

Get all images with specific SRC value on web page, using vbscript

I have a HTML like below <img src="a.gif" height="12" width="12"> <img src="a.gif" height="12" width="12"> <img src="a.gif" height="12" width="12"> <img src="b.gif" height="12" ...
Rasanjana N's user avatar
  • 1,400
1 vote
2 answers
497 views

I need to count Images with a specific value for "src" in a web page and populate a input field and submit page using script automatically

Assume any web page with a Form and having a set of images. I need to populate the input text value on page load and submit. var imgs = document.getElementsByTagName('img'); var countImagesFilled = 0;...
Rasanjana N's user avatar
  • 1,400
2 votes
1 answer
3k views

Unzip file silently and without dialog box to overwrite

I am working on vbscript to unzip the multiple files one after another. I am using below code Dim folder(3) folder(0) = "UBO90R1" folder(1) = "UBO90R2" folder(2) = "UBO100R1" folder(3) = "UBO100R2" ...
Tarun. P's user avatar
  • 442

15 30 50 per page
1
2 3 4 5
20