Questions tagged as 'vbscript'

1
answer

Help with: Wrong number of arguments or invalid propety assignment here

I just started with the VBS language and I'm doing things, here I am doing a vbs generator that has msgbox with 2 answers, but I get the error that appears in the title with the SendKeys on line 17. result=inputbox("Titulo") Mensaje=inputbox("...
asked by 03.08.2017 / 20:15
2
answers

Convert to Decimal in vbScript

I have the following code: Porcentaje = 0 valor1 = 255 valor2 = 7336 Porcentaje = valor1 * 100 / valor 2 The result is 3.47600872410033 as I am taking the percentage I want to know if there is a way to convert this result to decimal to ob...
asked by 14.08.2018 / 19:27
1
answer

List last session of the users

I have this function that takes the last user that started session on a PC. Function GetLastLogon Dim LastLogonUser Dim Count Dim Final Dim VFInal LastLogonUser =objRegistry.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersi...
asked by 06.02.2018 / 11:45
1
answer

How to execute an sql file from Visual Basic script

I have a query made in SQLServer 2014 I want VisualBasic Script to run from a file indicating the location, or in some case some code to execute it from VisualBasic     
asked by 20.06.2017 / 18:33
1
answer

VBScript insert date within route

I'm doing a process in VBScript. I need to copy some files from one folder to another. That is already done, but the problem is that the name of the folder from which it is copied varies every week, because it corresponds to the date. That's rig...
asked by 28.02.2017 / 21:37
1
answer

SendKeys does not work in C # in Visual Studio

I want an application that when pressing a button, the keys Alt + F4 are automatically pressed to close for example the form (it would be easier to close it by code and not having two keys pressed, but it is an example). In short, SendKeys do...
asked by 28.11.2018 / 13:26
1
answer

How to pass or return a .VBS variable called from .BAT

I have a script in cmd that calls a vbs script, which executes a series of operations and generates an array that I'm interested in being able to return to the cmd script, I was wondering if this is possible and if so, how could do it. The me...
asked by 17.08.2018 / 12:56
1
answer

vbscript problems in production

Good day, I have a serious problem, I am reviewing a page made in classic asp and vb which has included VBSCRIPT, the same stopped working suddenly and I have looked for how to fix it and does not want to work, the error it gives is    Server...
asked by 12.04.2018 / 15:55
0
answers

WSDL from HTML with VBSCript

Does anyone know how I can consume a WSDL Web service from an HTML page through VBSCript? I have to send a String per parameter and receive an object back, I have found examples but none of them works for me     
asked by 08.03.2017 / 18:30
1
answer

Generate list from string and show on page with VBS

Hello, I am trying to read a text file that contains some start characters but it can vary in the amount of elements indicating its cost and in the end the total sum. After generating the list it must be shown on the page in the order in which a...
asked by 12.03.2017 / 22:09