tagged [vbscript]

How to monitor focus changes?

How to monitor focus changes? Well Sometimes I am typing and very rarely it happens that something steals focus, I read some solution (even a VB watch) but they don't apply to me. Is there any windows...

30 Mar at 12:1

Is it better to use NOT or <> when comparing values?

Is it better to use NOT or when comparing values? Is it better to use NOT or to use when comparing values in VBScript? is this: or this: better? EDIT: Here is my counterargument. When looking to logic...

24 Sep at 20:20

Use Microsoft Scripting Control to evaluate 'If' expressions (via c#)

Use Microsoft Scripting Control to evaluate 'If' expressions (via c#) I have some c# code that uses the Microsoft Scripting Control to evaluate some expressions: ``` using MSScriptControl; // referenc...

5 Apr at 12:53

How to run vbs as administrator from vbs?

How to run vbs as administrator from vbs? Can anyone help me with running vbs from itself but with administrator rights? I need rename computer with Windows 8 via VBScript, but it's possible only if I...

Overload constructors in VBScript

Overload constructors in VBScript I found a way to extend classes in VBScript, but are there any ways to pass in parameters or overload the constructor? I am currently using an Init function to initia...

28 Dec at 12:6

How to Export binary data in SqlServer to file using DTS

How to Export binary data in SqlServer to file using DTS I have an image column in a sql server 2000 table that is used to store the binary of a pdf file. I need to export the contents of each row in ...

18 Feb at 16:50

ActiveX component can't create object

ActiveX component can't create object I have just installed a third party app on my Windows Server 2008 server and I get the > ActiveX Component can't create object message when I try to access using ...

databind a DropDownList control with a list of all sub directories that exist in a particular directory on the server

databind a DropDownList control with a list of all sub directories that exist in a particular directory on the server I am wanting to databind a DropDownList control with a list of all sub directories...

22 Apr at 06:6

Read and write into a file using VBScript

Read and write into a file using VBScript How can we read and write some string into a text file using VBScript? I mean I have a text file which is already present so when I use this code below:- This...

22 Mar at 19:37

return only Digits 0-9 from a String

return only Digits 0-9 from a String I need a regular expression that I can use in VBScript and .NET that will return only the numbers that are found in a string. For Example any of the following "str...

Update function on a RecordSet object in VBscript causing DBISAM parse error

Update function on a RecordSet object in VBscript causing DBISAM parse error I'm having difficulty using the Update function on a RecordSet object while using the DBISAM 4 ODBC driver. Here is what my...

23 Oct at 16:49

Numeric "date" in database - How to interact with that using "normal" dates?

Numeric "date" in database - How to interact with that using "normal" dates? I'm using this database where the date colomn is a numeric value instead of a Date value. Yes, I know I can change that wit...

Automatic login script for a website on windows machine?

Automatic login script for a website on windows machine? I saw some guy had a file (I guess a batch file). On clicking of the batch file he was able to log in to multiple sites. (Perhaps it was done u...

How do I read 64-bit Registry values from VBScript running as a an msi post-installation task?

How do I read 64-bit Registry values from VBScript running as a an msi post-installation task? I need to read the location of the Temporary ASP.NET Files folder from VBScript as part of a post-install...

ASP/VBScript "Gotchas"

ASP/VBScript "Gotchas" I'm supporting/enhancing a web application written in Classic ASP/VBScript. It has been about 10 years since I have used either in a day to day capacity. I just ran across an is...

22 Oct at 04:9

How do I read a file line by line in VB Script?

How do I read a file line by line in VB Script? I have the following to read a file line by line: ``` wscript.echo "BEGIN" filePath = WScript.Arguments(0) filePath = "C:\Temp\vblist.txt" Set ObjFso = ...

20 Mar at 19:53

Can I use a language other than VBScript to programmatically execute QTP Tests?

Can I use a language other than VBScript to programmatically execute QTP Tests? I have VBScript code which launches QuickTest Professional, executes a series of QTP tests, and emails the results. This...

20 Sep at 10:50