Most voted "vbscript" questions
Vbscript (Visual Basic Script) is an interpreted version of the Visual Basic language used in Active Server Pages (ASP) for tasks and dynamic HTML page construction, and Windows Scripting Host (WSH) to facilitate tool building by technicians or automated tasks.
Learn more…36 questions
Sort by count of
-
4
votes2
answers6606
viewsAutomatic installation script without user interaction
I need to run the ocsinventory agent installation automatically via script, which will be started by the domain’s GPO, and can be in . bat, . vbs or powershell, and there can be no user interaction.…
-
3
votes1
answer763
viewsEnable or maximize program window
I have a JAVA program that uses Selenium Web Driver to access some pages and print them. I print by simulating the Ctrl+P keys and then Enter. The problem: There are several pages and several…
-
2
votes1
answer348
viewsMake replace case insensitive in Classic ASP (Vbscript)
I have the string below: texto = "Meu texto" I would like to replace the word "My" and return it in bold. The result would look like this: Man text However, replace is case sensitive, that is, if I…
-
2
votes1
answer208
viewsSeparate all items from a string
I’m trying to make a system of save/load, I’m stuck on the loading part of the game cards, which are numbered for example: 1,2,3. To string contains the card numbers and other information:…
-
2
votes1
answer275
viewsScript to identify 2 active services, take down the 2 and go up only 1
Next, I have a service here in my environment that runs on some machines, however this service can not be duplicated ( can not have 2 active services at the same time ) I wonder if it is possible to…
-
2
votes1
answer101
viewsDate and time format on xls/csv conversion
I have a code that works, but I need help with the date format. On the conversion of xls to csv converts the date to mm/dd/yyyy and time to h:mm and I wanted it to be dd-mm-yyyy and the time to…
-
2
votes1
answer46
views"If <condition> Then" block makes no sense
I am in charge of maintaining a Vbscript application, but my main programming languages are Java (7+), Javascript and PHP (5.4+). During code review to refactoring the horrifying lines macaroni that…
-
2
votes1
answer40
viewsReturn single message after 5 repetitions of command
I have a very simple code that checks if the user exists and returns a message "Guaranteed Access" or "Denied Access". The problem is I need to call this sub 5 times, which will return 5 Msgbox. How…
-
2
votes1
answer220
viewsHow to authenticate to a Firewall web page via Powershell/Selenium?
I developed several Powershell scripts to automate the configuration of machines I work on, speeding up and avoiding the heavy work of manually setting up a giant number of stations. Basically they…
-
2
votes1
answer202
viewsFilter cmd output with VBS and return value
I have in my environment Arcserve Backup, which is the tape backup program we use, in it we have a program called ca_qmgr that manages the queues of backup Tvs, with a parameter via CMD so that it…
-
2
votes1
answer109
viewsVBS script to change the computer name
I have this code that checks the computer name and changes it, but it’s not changing, informs me: Line 29 error, character 5, Required object: Dim objShell Do Choice = InputBox("ENTER THE…
-
1
votes2
answers501
viewsSQL - query True or False records
I am mounting a simple page that show records marked as blocked by admin. The field is user-block and the options are FALSE or TRUE. I thought the Query would be: "Select * from Usuarios WHERE…
-
1
votes1
answer42
viewsPass Parameter with VBS Double Apas
How to pass a parameter that has double quotes in vbs Atalho.Arguments = ""args.ext""
-
1
votes1
answer1920
viewsHow to read web service XML on VB6?
I took several examples on the Web that gave right, but I need to get the values of this file that follows the link below.…
-
1
votes1
answer1450
viewsOpen Excel spreadsheet and copy the Data into VBS
Hello, I have a simple spreadsheet (3 cols and 2 Rows) and am trying to create a script to open it, copy your data and insert into another. Path =…
-
1
votes1
answer43
viewsVbscritp wait one process to finish and start another without Sleep
I am with the following problem I rode a Vbscritp to automate some processes, I am using Sleep so that it waits for one process to finish to start another, but often the time is variable and it may…
-
1
votes2
answers211
viewsInsert problems in Asp classico (replace)
Guys, in my database, the column is set to numeric (18,2) then I have a field in a form that the person type the value and it goes to my table. the insert is like this: entrada =…
-
1
votes1
answer121
viewsPrinting by VBS - Windows 2008 R2 Server
Hello! I did an automatic print routine where a task I created in windows server 2008 R2 calls a vbs script, where HTTP request by GET is made to a web service that mounts a PDF file in a folder.…
-
1
votes0
answers33
viewsvbs : how to wait for the end of the copy execution
In the following programme on VBScript I try to copy a group of files (in fileCollection) to an already created zip file: Set FSO = CreateObject("Scripting.FileSystemObject")'Reference the Text…
-
0
votes0
answers299
viewsError while trying to open an Excel file
I am trying to open a document in excel via vbScript. I am not succeeding in running, the following error is generated, without description: -2147417851 The problem occurs when executing the…
-
0
votes2
answers4096
viewsCreate and manipulate array with classic Asp
How to create, feed and read the array with key and value using Asp Classic? I need to do something kind of like this. $registro[] = array( "codigo"=> "$v", "municipio"=> "$v->municipio",…
-
0
votes0
answers864
viewsWorkbook class Saveas method failed
Const xlShiftDown = -4121 'Arquivo de entrada strInput = WScript.Arguments(0) 'Arquivo excel strOutput = WScript.Arguments(1) 'Arquivo excel strFormato = WScript.Arguments(2) Set objExcel =…
vbscriptasked 6 years, 10 months ago David Gabriel Oliveira 11 -
0
votes2
answers72
viewsHow do I stream a file from my server?
People would like to know how I can make a file type shareable, for example: I have a file called bots.txt on my server, I wish my clients could edit it through the web getting saved on my server.…
-
0
votes2
answers38
viewsCompile string as code
I have a string in Vbscript that I need to run as code, as I would do? I read some articles about Eval and Execute Statement but I did not find a clear explanation or did not understand correctly...…
-
0
votes1
answer92
viewsCint formatting in ASP Classic
Good Afternoon to you... Guys, I have a question in formatting... in my table, I have a column with nchar data(4) (before was nvarchar(4), but gave anyway), in the form users choose in a select to…
-
0
votes0
answers227
viewsGenerate Vbscript log
I have the following code. ' Ajuste o número de psts a serem feitos backup. *Obs.: comece por 0* ' ReDim pst(0) ' Defina o local referente a cada arquivo a ser feito backup ' pst(0) =…
-
0
votes1
answer407
viewsEdit lines in vbscript
I am trying to learn VBS to resolve an issue that happened when I tried to import a file into my system. The file has more than 4000 lines and all lines must have 240 characters. (I don’t have…
vbscriptasked 6 years, 5 months ago Aprendiz JavinhaScript 1 -
0
votes1
answer407
viewsDoubt - Dependent Combobox with Classic ASP
I have two tables in SQL: One of groups that has two columns: id and group One of products that has three columns: id, group and product In the products table, the column "group" is equivalent to…
-
0
votes2
answers331
viewsScript vbs to restart a service if it is "stoppered"
I created a vbs script to restart the service if it is stopped. However it does not work, I tried to do a by . bat more without including in the schedules tasks. Set objWMIService =…
-
0
votes1
answer244
viewsHow to catch the monitor serial via code
I need to collect various information from monitors via code, I searched a little and found this link:…
-
0
votes1
answer87
viewsVbscript + Javascript in an HTA/HTML file
I’m trying to create a mini program in HTA using two scripts: one in VBS and another in JavaScript. However, whenever I include one of the scripts by tag <script type="text/vbscript"…
-
0
votes1
answer2444
viewsList installed print server printers from a remote station
I work in a company that has the following structure: Each city of my state has a headquarters with a server that is also print server, in it are the printers of this headquarters. I use the psexec…
-
0
votes0
answers182
viewsLog out in new ASP Classic tab
It is possible to close the session of ASP when opening a new tab? I am trying to end the login session of ASP when the user opens another tab and tries to access the system, the idea is that the…
-
0
votes1
answer89
viewsSAP get the text value
Good morning, I have a problem, I hope someone can help me. I have a table in SAP. I need to capture the value of the Qtd.Pç column by recording the sap script brought this line…
-
0
votes0
answers25
viewsError while trying to copy file via VBS
I am creating a Script to change the wallpaper via VBS where I copy an image from the server and put on the user’s computer, I have tried to change using GPO but some Windows 10 computers are not…
-
-1
votes1
answer26
views