As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [vbscript]

VBScript (Visual Basic Scripting Edition) is an interpreted scripting language developed by Microsoft that is modeled on Visual Basic. VBScript is not the same thing as VBA or VB.NET. They are three different things, so use the correct tags.

Filter by
Sorted by
Tagged with
-2 votes
0 answers
8 views

VBA getting Server name or address could not be resolved

I am getting Automation error 2147012889- Servername or address could not be resolved when triggred via VBA code, but the same url works when triggered via postman. Need help in solving this issue. ...
Raju Raipure's user avatar
0 votes
0 answers
39 views

Explain VBScript which remove installshield from DCOM

I have inherited a portion of VBScript code that is included in an .msi file created using InstallShield. Since it throws exceptions on certain Windows machines my goal is to determine if this older ...
Epligam's user avatar
  • 731
0 votes
1 answer
33 views

VBScript for cycle does not terminate - what's causing it?

The problem is in the second for cycle. T does not end. I can't figure out why it does? Can you tell me what my mistake is? Set Jakobi = Rastr.Tables("jakobi") Set yzel_i = Jakobi.Cols(&...
young_energizer's user avatar
0 votes
2 answers
54 views

Detection from Antivirus

I have this Shortcut code that runs perfectly without having any issue. But my problem here is that it does is been detected by numerous antivirus and this is a problem for me. I do not know how I can ...
Dieketseng Moreki's user avatar
1 vote
1 answer
15 views

Add image to word with alt text using VBScript

I wrote a vbscript (.vbs) to add an image to a word document at a bookmark. I need the document to be accessible so I need to add alt text to the image in the word doc. I appreciate any help. The ...
Jennifer's user avatar
0 votes
1 answer
52 views

Why does my video not show up in a modal dialog window in my VBS HTA app?

I am trying to create a modal dialog in my app where a video shows up but it doesn't. But when I open the window without using the modal dialog function in the main hta (vbs) it works perfectly. Video ...
Arnaud Girard's user avatar
1 vote
0 answers
50 views

PSWindowsUpdate doesn't work in a service application on windows 11

I have a C++ application that call different powershell commands and puts the output into a json file. It's installed with a VBS script, that automatically imports the PSWindowsUpdate module. And it ...
Tobee's user avatar
  • 11
-2 votes
0 answers
57 views

How can I cause a Blue Screen of Death in Windows XP using a Batch or VBS script? [closed]

I am trying to cause a BSOD in Windows XP (on Virtualbox) for a youtube video. I am trying to make a script (preferably Batch, or VBS) that will quickly BSOD Windows. I have looked at 3 other ...
1 1's user avatar
  • 1
0 votes
0 answers
29 views

Refresh excel query table with vbs script [duplicate]

I would like to refresh excel query table with a vbs script but i didn't find any guide on web. I have one query table (connection name = "VISIONI23" in the sheet "VISIONI") to ...
Antonio's user avatar
-5 votes
0 answers
29 views

kindly let me know how to do this [closed]

How to create Bounding Box without using start command in CATIA VBA (CATVBA) ? And the bounding box should be at 5mm offest, it will be use for splitting part for 3D printing so need to give splitting ...
Abhishek Parvat's user avatar
0 votes
0 answers
39 views

Problem with Window.event.keyCode and .dat memory read VBS hta [duplicate]

Basically, what I am trying to do is to create a system where I can store keycode in a .dat file named Bindings and use them to define the key associated with an action. For example the key escape is ...
Arnaud Girard's user avatar
0 votes
1 answer
45 views

How to get batch file to process from within folder its located?

I have the below code to process the move of suppression files but its moving from the desktop and not the folder in which the batch file is located. JobNo = InputBox("Input Job Number") ...
John D's user avatar
  • 139
0 votes
0 answers
39 views

Add title to MSHTA browse method

I was trying to find a way to browse and select a file as a variable using VBScript. The standard methods of using common.dialog were not working thus I used the below: Set wShell=CreateObject("...
John D's user avatar
  • 139
-1 votes
1 answer
45 views

How to process special characters in vbscript [duplicate]

I am writing a find and replace workflow and it needs to be able to find special characters, one of which is a y with two dots above it. https://www.compart.com/en/unicode/U+00FF I currently use a ...
John D's user avatar
  • 139
0 votes
0 answers
23 views

How can I get the path of a script and access another vbscript file in Install Shield?

Install Shield. How to get a path of a script and call a vbscript method from different vbscript file? Normally, outside install shield world I can use this this to get a executing script path: ...
victoor's user avatar
0 votes
0 answers
31 views

Prevent MsgBox to opening in PowerDesigner

I need to checkout models automatically using VBScript, but when the model DBMS is not valid a MsgBox showed up and the human action becomes needy. I am looking to way to supress this MsgBox with a ...
Lucas Maraal's user avatar
-1 votes
1 answer
92 views

How can I use the WshShell Run Method with a variable in VBScript on Windows 11? [duplicate]

Using the WshShell Run Method using a variable.. Very Inexplicable result, Here is my file: Read the Comments. Using Windows 11 on Surface Pro 8 Dim Sexy,WshShell3,fil Set WshShell3 = WScript....
user21932362's user avatar
-4 votes
0 answers
38 views

Message box size in vbs [duplicate]

How can I increase the size of message box written in visual basic script? lol = msgbox ("massage",64,"error") Operating system is windows 10 and I wrote this code in vscode
Aryan Rai's user avatar
0 votes
0 answers
30 views

How do I reference wbemErrAccessDenied in a vbscript

I found a snippet of code that allows me to connect to an exchange server to run some tests. The code I'm trying to use reads in part: '----- Get a connection to the Exchange Server ----- Set ...
Kevin's user avatar
  • 11
0 votes
1 answer
24 views

Changing value of current value in vbScript in InforVisual ERP System

I am trying to create a macro to speed up an ERP system process in Infor Visual. I am essentially trying to go from the inventory transaction entry window to the issue and return by exception window ...
Chance's user avatar
  • 1
0 votes
0 answers
24 views

How do i make a msgbox that has 2 Options that do different Things? [duplicate]

I dont currently know how to make this so I need help at fixing it I made this and I'm quiet stupid at vbscripting I guess I expected that to work but it didnt worked at all Dim main Main=msgBox(&...
Fabian's user avatar
  • 1
0 votes
0 answers
54 views

Vb script to enable file sharing between computers not working [duplicate]

This script is not woking any help is appreciated. I tried longer wait time to no effect and I watched the FDResPub in services, but it never stopped. I expected it to stop and then restart. I made a ....
Bob's user avatar
  • 1
-1 votes
0 answers
28 views

How to write to configuration document using VBS [duplicate]

I'm trying to write a script to swap the text of a config file between two variations, and while I can get it to work properly with a text document I'm having trouble getting the process to work with ...
Adamsquishy's user avatar
1 vote
1 answer
28 views

UWF: get CurrentEnabled value via VBS

I'm trying to create a simple vbs script to get UWF status: Set objWMIService = GetObject("winmgmts:\\.\root\StandardCimv2\embedded:UWF_Filter") WScript.Echo objWMIService.CurrentEnabled ...
Tognolo's user avatar
  • 446
-3 votes
0 answers
22 views

Create 2 arrays from excel file in VBS [duplicate]

I have a problem. I try to create 2 arrays from excel file in VBS. The name of my file excel is Data. There are two sheets wich represent two arrays => one sheet = one array . i WANT THAT one ...
Kate's user avatar
  • 1
0 votes
0 answers
30 views

Detect Excel Project Compile Errors in VBS

I have the following script in VBS, This script allow us to get module or components from a excel macro file that we save to svn and add them to a "seed" input file, and create a new macro ...
rread's user avatar
  • 141
1 vote
1 answer
40 views

Selecting the Xth item in a dropdown menu using the arrow keys in UFT

I'm passing an argument X to a subroutine in UFT that will go to a dropdown control and select the Xth item My first attempt worked, and I was basically just sending 'up' a bunch of times to get ...
seestrahseestrah's user avatar
-2 votes
1 answer
53 views

How to Modify an HTA with Vbscript to add a button and display the results of user input [closed]

I have an HTA that we are using as a front end during the WinPE stage for server builds that allows the user to input variables, some from text files with drop downs, and some are free form. Then one ...
PfromA's user avatar
  • 3
-2 votes
2 answers
73 views

VBScript / ASP Classic - Avoiding name conflict with function parameters

I'm working on an old application that often declares variables that seem to be global, using identifiers likely to be used elsewhere. When writing a function, some parameters happen to have the same ...
Virus721's user avatar
  • 7,964
0 votes
2 answers
38 views

Add hyperlinks in each worksheet back to the TOC sheet [duplicate]

I have an excel workbook with the first worksheet as the TOC sheet and many other sheets as contenct. I would like to use VBScript to add the hyperlink to each sheet which can be linked back to the ...
Jasmine's user avatar
  • 39
0 votes
0 answers
58 views

vbs smtp sending emails

I am trying to write a script that sends me some informations from a given text file. I tried multiple ways of error handling but I can't get past the following error: Error setting From address : ...
Luven's user avatar
  • 13
-1 votes
1 answer
45 views

How to convert a batch file to vbs [duplicate]

I have a batch code that i want to run in vbs, without a cmd window. Batch code: :X taskkill /f /im chrome.exe /fi "WINDOWTITLE eq Monkeys*" goto x Can anyone help me? Tried running the ...
Pritam's user avatar
  • 1
0 votes
1 answer
46 views

I am a beginner with vbscript and this msgbox popup many times as it reads the string mutilple times. Can we do something so it only throw one msg

If InStr(currentoption,"INTUM")>0 Or InStr(currentoption,"SHIM")>0 Then MsgBox "INSTALLER SHIM ET/OU INTUMESCENT ( VOIR W.O. ET CARTABLE INSTRUCTION INSTALLATION DE ...
Deepesh Kumar's user avatar
0 votes
2 answers
55 views

How do I run VBScript in Python 3.11 without a external VBScript file? [duplicate]

So, I'm trying to make a Python file and I want it to run VBScript code without the use of an external vbs file, because I want it to return X witch is "Yes" or "No" so I can use ...
KaiLando's user avatar
0 votes
1 answer
48 views

Start an Interactive Process Remotely just after creating scheduled task

I want to remotely start a script, which needs to run in the users access like this: https://devblogs.microsoft.com/scripting/how-can-i-remotely-start-an-interactive-process/ because its not possible ...
lucas barbosa's user avatar
-1 votes
1 answer
151 views

Format the data from Textfile to a CSV file

I'm writing a script in VB Script to format Active directory data. I am using a Bat Script to produce the output in txt and I want to make a VB Script to format the data with headers. My Batch script ...
Josh123's user avatar
2 votes
1 answer
69 views

VBScript Class member variables was override by outer constants

I found that vbscript class member variables can be replaced by outer constants value. Example VBScript code: ''' save as test.vbs file Class Person Private name Public Sub hi name= "...
cuixiping's user avatar
  • 23.8k
1 vote
1 answer
75 views

PowerDesigner: 'Object Required': PdPDM Error while running a vbscript from outside PD [duplicate]

I have written the vbs script for doing reverse engineering (in PowerDesigner) but when I am running the script through Python, I am getting the error "Object Required": PdPDM Error. I have ...
sushil gurjar's user avatar
0 votes
0 answers
58 views

VB script XML make pretty

I have searched and read other questions that have answers but they all assume the XML is already saved as a file. This is what I am looking for Format XML string in VBScript . But it uses Server to ...
user3786542's user avatar
0 votes
0 answers
58 views

Attempting Shell.Execute VBS command to request Admin, from within a CMD script, Works great unless dropped "%1" filenames have DASHES (-) in them

This trick has been around for a long time. You can use it at the start of your command scripts to ensure they run with admin rights. (Added a "Hello"/pause to test) @ECHO OFF & CD /D &...
PlayLORD-SysOp's user avatar
0 votes
1 answer
40 views

VBS Looping returning NEXT line then expected

I am trying to find a field value in a flat file, and set a variable based on that value. Here is my code: Set file = fso.OpenTextFile(DataFileName, 1) do until file.AtEndOfStream if StrComp(left(...
AlliDeacon's user avatar
  • 1,313
1 vote
0 answers
42 views

Is there a way to make a telnet session connect, issue a comment and disconnect?

We have a Fluke 1620A "Dewk" hygrometer that we use in our lab. Before we would have to go over to the unit hanging high up on the wall, and get temp and humidity. Since it is connected to ...
Paul Arnold's user avatar
0 votes
1 answer
61 views

Relative path on WshShell

I'm trying to use the following script on various machines, so i need to put in a relative path, if the file is in the same diretory works fine, but if i create a folder in this diretory the code dont ...
Hebert Mateus's user avatar
0 votes
0 answers
25 views

how can i get first text[1] inside a complex DIV using UFT?

this is the xpath of global DIV: /html/body/div/div/div[1]/div Pic of that DIV: enter image description here his html : <div class="alert alert-primary"> <h2>How to ...
Arwa Hm's user avatar
0 votes
0 answers
16 views

VBScript - 800A0401 – Expected End of Statement when run vbs with var set [duplicate]

I am trying to use vbscript to "Dim textBlock As IVTextBlock", but I get a error 800A0401 - Expected End of state Set visioApp = CreateObject("Visio.Application") visioApp.Visible =...
luong's user avatar
  • 1
-1 votes
1 answer
34 views

Why do I need to manually input username when connecting to switch with a python script?

I'm converting a VB script that connects to a switch through SecureCRT into Python3. The original script contains: crt.Session.Connect " /SSH2 /L " & user & " /PASSWORD " &...
Shadomew's user avatar
  • 109
0 votes
0 answers
37 views

Creating a text file throws "file path unaccesible" vbs

I am trying to create an installer for my app in vbs but when I try to create a file for the said app it throws "file path unaccesible" on line 21 character 13 I do not know why it does this....
Arnaud Girard's user avatar
-1 votes
3 answers
87 views

Exactly minutes between two times [duplicate]

Need a formula that gives me the minutes between two dates. This should be used in asp classic eg: between 08:00-20:00 I want to distribute times by 16 times. (I have 16 pieces of candy that I have to ...
Henrik's user avatar
  • 3
-1 votes
2 answers
47 views

RegEx to extract data between an xml node in VBScript

First of all I have read all the references that match the above Title but none seem to answer my simple requirement. I must use a regex pattern as I need to feed it to a third-party library for ...
David's user avatar
  • 939
-1 votes
1 answer
27 views

Excel VBScript: Ability to convert funky exponential number to a readable format

Looking for a way to convert a column from "General" to "Number" format in excel using VBScript in Power Automate Desktop I have an excel workbook (xlsx) that can be populated by ...
ckatz's user avatar
  • 23

1
2 3 4 5
374