Most voted "vbs" questions
Vbscript (Visual Basic Scripting) is an interpreted scripting language developed by Microsoft and modeled on Visual Basic. Vbscript is not the same thing as VBA or VB.NET, use the correct tags for this ([vba] and [Vb.net] respectively).
Learn more…42 questions
Sort by count of
-
4
votes1
answer295
viewsVirus decryption - vbscript
Option Explicit On Error Resume Next dim rbs309 dim tadjakmnmfrg4460 dim icsnvk206 dim wsmp1276 dim falkal1610 dim rfqgobyeyrp5319 dim gtxhgi5556 dim mll8810 dim qxat8709 dim hgurgqrv3280 dim…
-
4
votes2
answers364
viewsHow to block a website with Delphi, vbs or msdos?
I have a user control and monitoring system and would like to block a site using Delphi or even MSDOS or vbs commands, or even using Sockets(I don’t know if it’s possible)? What I have so far is…
-
4
votes1
answer1738
viewsCreate txt with Default name Printer in VBS
Good morning, I have the following script. Set oShell = CreateObject("WScript.Shell") strValue = "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device" strPrinter =…
-
4
votes3
answers1929
viewsOperations with dates (delete file with date in name and earlier than 6 months) without using Forfiles
It’s been a long time since I’ve dealt with VBS, so I thought I’d just do it on the command line I need to delete files earlier than 6 months from the current date, as the files I am managing have…
-
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
answer1026
viewsTxt file directory with VBS
My VBS code is like this: Dim oShell Set oShell = Wscript.CreateObject("WScript.Shell") filename = "C:\Users\Public\Documents\Copy_File.txt" oShell.Run(filename) Is there any way I can leave this…
-
3
votes3
answers528
viewsHow to deactivate CTRL+C in batch?
You can deactivate the CTRL+C command in batch?
-
3
votes1
answer927
viewsImplement Vbscript Post Reverse Logistics Webservice
I am trying to implement the mail reverse logistics webservice in vbscript but always receive as response the error "Error Reading Xmlstreamreader." Follow the code that is being used. I am still in…
-
3
votes3
answers2628
viewsscript for printer installation automation
Good afternoon guys, I have in my environment a print server with a total of 63 printers installed and shared on the network, I would like a script for automating the installation of these printers…
-
2
votes1
answer1137
viewsMicrosoft Vbscript Runtime error '800a01a8' Object required: '[Undefined]'
I have a routine q was working normally in IE 8, when updated to IE 11 it presents me the following message: Microsoft Vbscript Runtime error '800a01a8' Object required: '[Undefined]' Microsoft…
-
2
votes2
answers859
viewsReturn File Name in VBS
Is it possible to return the name of a file/program by a VBS script? Type when dragging and dropping into the script or opening with... the script, it returns the name.
-
2
votes1
answer114
viewsHow to find out how many slots/memory banks are being used in VB
I am developing a project in Visual Basic and would like to know how I can read the amount of slots/ RAM banks there are in use in the computer, also the value of RAM installed in each slot/ bank in…
-
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
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…
-
1
votes1
answer4201
viewsHow to identify in windows event log when a folder is deleted?
I have an application that uses a folder c:\temp in windows and need to identify somehow if this folder was deleted to recreate the directory. To recreate, I have in mind to use the windows task…
-
1
votes0
answers70
viewsVBS Script with error
I have here a code I found need help... It basically spam a gmail account but is having an error in the smpt part is here the error: http://i.imgur.com/Gmdn9t2.png and here the code: Dim User Dim…
-
1
votes1
answer168
viewsRelative Path in Vbscript
I want to associate a XML is an application in VBScript and I need to indicate in the application which directory should read the XML, however, as is easy to predict, Path of XML can’t be hardcoded.…
-
1
votes2
answers695
viewsHow to give the option for the user to choose the destination folder in BATCH?
I do not want to enter the destination manually, for example: set /p destino=Escolha o local de destino: robocopy /s /e pasta %destino% RESOLVED: Using cmd (set & for) + Powershell (new-Object…
-
1
votes1
answer372
viewsI need help with a Solidworks macro
Basically she has to open the drawing 2d of a selected mount file generate the PDF and close, got something, but only works with the path file, do not know which command to use for it to work with…
-
1
votes3
answers14296
viewsExport SQL Server query to CSV file
I need to somehow export the result of my SQL query to a CSV file. However, it has to be directly via SQL or VBS. Or else, all database table data can be exported to CSV.
-
1
votes0
answers313
viewsRun . vbs file via php inside the server
Good morning. I have a file in . vbs on my machine that disables some users in the company’s AD. I was wondering if it is possible to run this file inside my server via php. Has anyone ever done…
-
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
answer205
viewsScript/Routine to run program
Hello. I would like an example of Script by the same VBS, to check if there is activity in Windows and so that if there is no activity in the previous 15 minutes, this script runs a certain program.…
-
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
votes2
answers394
viewsVb script to call an executable
Please someone can help me, I have this code below, saved in vbs, the problem occurs in the two lines that have exenemy, if the code is saved with the first line, it works, if it is saved with the…
-
1
votes1
answer46
viewsPROBLEM WITH PARENT TAG in VBS
So people... all right? I have a little problem here very similar to the one I had yesterday, I have a VBS script that suits me well, it basically reads the XML, takes the date inside the XML and…
-
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
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
votes1
answer1097
viewsError pasting data in Excel with VBS
I have a simple spreadsheet in Excel(3 cols and 2 lines) and am trying to create a script to open it, copy your data and insert them into other spreadsheet with the same structure using a form.…
-
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…
-
1
votes0
answers10
viewsHow to send multiple attachments concatenated into the same variable in vbscript
'Declaring internal variables read files Dim files Set objFSO = Createobject("Scripting.Filesystemobject") 'Setting source folder objStartFolder = "C: ORIGIN TEST" Set objFolder =…
vbsasked 3 years, 7 months ago Thiago Lima Costa 11 -
0
votes0
answers348
viewsLog in Vbscript
I need to create a log to see who used my script, and this log has to go to a txt. Below is the procedure, as I create this log that contains the user and the date On Error Resume Next Dim…
-
0
votes1
answer370
viewsLoop in Vbscript
Set WshShell = WScript.CreateObject ("WScript.Shell") Set colProcessList = GetObject("Winmgmts:").ExecQuery ("Select * from Win32_Process") For Each objProcess in colProcessList If objProcess.name =…
vbsasked 8 years, 2 months ago Daniel Santos 11 -
0
votes0
answers382
viewsas I do to create a function in vbs that when clicking enter it switches two windows ie alt + tab
that’s the code I’m using Set objShell = CreateObject("WScript.Shell") set Window = CreateObject("InternetExplorer.Application") Window.RegisterAsBrowser = True Window.MenuBar = True Window.ToolBar…
vbsasked 8 years, 4 months ago marcio seixas 1 -
0
votes2
answers1720
viewsHow to put . vbs inside . bat
I’m putting together a project and I couldn’t put up the file .vbs within the .bat. criminal record.bat: @echo off :Menu cls…
-
0
votes2
answers1575
viewsHow to run file . vbs on Windows Start
As I could run a file . vbs when windows start, I can make a file . bat run by regedit. I already put a . bat to open . vbs, I did so cscript "C:\teste.vbs" exit…
-
0
votes1
answer68
viewsProblem with VBS and XML
So people... all right? I have a little problem here, I have a VBS script that served me well, he read the XML files and renamed them to the vendor name. Now I need it to rename the XML to the…
-
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
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
answer231
viewsInsert msdos command into a vbscript file
I wonder if it is possible and how to insert an MSDOS command line inside a vbscript. I have this command line to get the ID of the Anydesk program, available on the Anydesk website @echo off for /f…
-
-1
votes1
answer26
views