Click here to Skip to main content
15,890,438 members
Everything / Programming Languages / VBScript

VBScript

VBScript

Great Reads

by Doug Schmidt
A VBScript utility that continually monitors a VSS database and sends emails when certain patterns are detected. Can be run as an NT service.
by Kewin Rausch
A tool for translating C/C++ makefile projects in Visual Studio compatible ones
by Larry Boeldt
Building on a previous article, we now delve into the Facebook Graph API and provide a few useful functions.
by Duncan Edwards Jones
Part 2 in the series showing how to write a debugger in VB

Latest Articles

by Member 4206974
Form generator is a class module written in Basic4Android (B4A) for build and handle forms data.
by rkapl
Automated Setting of the Out of Office Assistant
by Marijan Nikic
How to set AIP label via VBScript code
by Igor Krupitsky
How to compare two Excel Files using VBS

All Articles

Sort by Title

VBScript 

18 Jun 2008 by Igor Krupitsky
A script that lets you run many XMLA files against a SSAS 2005 database.
20 Feb 2006 by creativesri
This article briefs you about sending mail using SMTP in HTML Format, which takes the default SMTP settings from web.config file
7 Aug 2014 by Jerry.Wang
Modify methods' IL codes on runtime even if they have been JIT-compiled, supports release mode / x64 & x86, and variants of .NET versions, from 2.0 to 4.5.
25 Sep 2008 by tomcat1
Call a .NET COM+ Interop component with Classic ASP.
30 Jan 2007 by TylerBrinks
How to call absolutely any .NET code from your Vista Sidebar Gadget
8 Jan 2004 by dzzxyz
This application demonstrates how to Create, Train and Test an AI Chatbot.
21 Jan 2014 by Immortalbard
i use it in imacro, but i need some assistenceThanks a lot_______________________________________________________________________________________________var ret;for (var i = 1; i
21 Jan 2014 by Christian Graus
dim ret, i;for (i = 1; i
22 Jan 2014 by Immortalbard
Hello, I would like the help of some experienced person, I need to make a vbscript that would find a particular word in a web page, and if he found he would start a macro if not found, it would take another.The macro begin welliret = iim1.iimPlay (mypath & "Macros \ macro1.iim",...
29 Oct 2004 by eleung
A C# .NET serviced component that encapsulates MQ PUT and MQ GET.
12 Nov 2007 by Marcelo J. Kittlein
How to pass and return Arrays and Ranges in Excel to and from a C++ DLL.
24 Jan 2012 by Flamewave4
A class that allows the creation and manipulation of collections in classic ASP.
3 Oct 2008 by Hasler Thomas
An Excel demo of how to build a File Browser in an Office application
22 Oct 2022 by Member 4206974
Form generator is a class module written in Basic4Android (B4A) for build and handle forms data.
10 Mar 2009 by Gavin Harriss
A link cloud / tag cloud that copes with large weighting variations and gaps well.
27 Sep 2007 by graham the programmmer
A method to get an overview of the SQL servers in a Domain
3 Jan 2005 by Phillip H. Blanton
At ComponentScience where I work, we heartily embrace the use of regions to logically separate our code into meaningful blocks. After doing it manually for a couple of years, I decided to write myself a little macro to make my life easier.
8 Jul 2010 by Stefan Huy
VBA Hashtable Visual Basic Queue FIFO
4 Apr 2012 by BorysT
This is an alternative for "A quick & simple VBA FIFO Queue Implementation"
8 Jul 2010 by Stefan Huy
VBA Hashtable Visual Basic Hash
8 Jul 2010 by Stefan Huy
VBA Hashtable Visual Basic Stack LIFO
5 Nov 2009 by Md. Marufuzzaman
A simple example of merge document (Microsoft Access 2003)
12 Apr 2018 by David Cantrell
How to add optional parameters to any function in VBScript & Classic ASP
11 May 2020 by Marijan Nikic
Small utility that takes in a formula as function f(x) and draws a graph based on it
19 Mar 2014 by David Cantrell
In which a class that wraps an ADO Connection object and makes it more developer-friendly is discussed.
15 May 2000 by Iulian Iuga
A simple tree control written using ASP that allows you to display hierachical data.
25 Mar 2010 by JHawkNH
I have an application that I have been writing in VB.net for a while now - it creates animation. I want to allow users to create there own effects, filters, and other processes by writing scripts that will access and change the variables in the running program. I do not want to create my own...
30 Mar 2010 by Gregory Gadow
There are a couple of ways to approach this. One way would be to use a visual interface. Present the user with a set of radio buttons, checkboxes and/or drop-downs. When the "Do it" button is pressed, you can then parse the selections to apply filters etc. You can code an option to serialize...
20 May 2016 by Telstra
When I run the following vbscript I am getting the access denied error.Set http = CreateObject("MSXML2.ServerXMLHTTP.6.0")http.setTimeouts 5000, 5000, 10000, 3720000http.open "GET", "http://nykpsm030000259.intranet.barcapint.com/SCP/CCL/Counterparty/ValidateCache", FALSEhttp.send...
4 Nov 2005 by fstrahberger
How to access Oracle without tnsnames.ora.
25 Oct 2005 by fstrahberger
Access to Oracle without tnsnames.ora
14 Apr 2012 by ajofscott
Numerous attempts to instance MSCOMM32.MSCOM within my hypertext application have failed. Will I have to wrapper MSCOMM32 in a user ocx marked as scriptable? Is there a way to access via named pipe or a textstream?
16 Apr 2012 by ajofscott
ActiveX cannot create object! With both object tags and clsid method and in script with the CreateObject("MSCOMM32.MSCOMM") method. Before you ask, yes the license manager was defined before the mscomm and the license file for the mscomm control was referenced. I can create and access...
2 Apr 2012 by ayyp
Hi,We tried accessing the methods in our DLL thro VBScript but we couldn't. We searched the internet and found that,in order to access these methods thro VBScript, we need to make them as COM exposed. I don't think that will be possible as this DLL is given by third party. Is there any way we...
5 Jun 2011 by tembz
Hi.. I am a newbie in development. At work I have a personal calendar and then there are shared calendars that I have access to. I am trying to write a script that retrieves the appointments in each of these shared calendars, but the code I currently use (adapted from Greg Thatcher) only...
5 Jun 2011 by Kim Togo
You have to use GetSharedDefaultFolder instead of GetDefaultFolderFirst create a Recipient via .CreateRecipient
25 Nov 2017 by CyberSaint
Hello guys first thanks for checking out problem. Guys I need to know how can I get the VB script var value which is inside of asp page to my js externalfile . E.g :- I have In my asp page Now I have a javascript page in which I need the value of ABC to manipulate few...
25 Nov 2017 by Dave Kreskowiak
You can't because those are two entirely different and separate execution environments. You can, however, cheat and use a hidden field in the HTML page that the VBScript code can set and then the JS code can then read.
11 Mar 2006 by dixanta
20 Jul 2009 by Lonnie R Thomas
I am trying to add an accordion control to one of my pages.Following is the code: ...
21 Jul 2009 by jinaka
Add CSS class for accordion header and content.then error will dissapear..... 56464564564
3 May 2010 by Sandesh M Patil
You seem to be missing .Also, make sure you've included the AjaxControlToolkit's DLL in your project. You can also check outLink for some tips on fixing AJAX problemsHope this may help u... :)
16 Dec 2011 by SureshNagalla
make sure you've included the SelectedIndex="0" property of and in accordian tag we should have implemented at least 3 properties along with id , runat properties Hope this may help u...
22 May 2016 by Telstra
When I run the following script on local its just run fine. But when I am trying to run it on server it's giving access denied error.set http = CreateObject("MSXML2.ServerXMLHTTP.6.0")http.setTimeouts 5000, 5000, 10000, 3720000http.open "GET",...
22 May 2016 by OriginalGriff
The error is pretty explicit: "Access denied".If you tried to go through a door and a sign said that, what you you assume? That you didn't have permission to enter the room, yes?That's what you are being told by the computer: the yous (as a user) does not have permission to create things in...
4 Mar 2011 by Johnny Sandaire
Hi,I would like to query AD for several attribute values, such as AdminDisplayName, ScriptPath, and HomeDrive, where the SamAccountName is equal to a specific variable. I would like to then save the results to specific C++ or VB Script Variables that I can then use to compare with an...
6 Mar 2011 by Kurt Degiorgio
Have a Look at the MSDN documentation: http://msdn.microsoft.com/en-us/library/aa772218(VS.85).aspx[^]Check the following sample code from MSDN:http://msdn.microsoft.com/en-us/library/aa772316(v=VS.85).aspx[^]Good Luck!!Regards,K.D
18 Jul 2014 by santoshsasane
Hi All I have asp application where i got the error Activex component can't create object:'Scripting.FileSystemObject' while performing the action createobject("Scripting.FileSystemObject")I heve register the scrrun.dll but still error is thereplease Help
22 Nov 2006 by DonSn
How to expose a .NET EXE assembly to a COM compliant client application (such as VB6 or VBScript) and force the client application to use the running instance of the .NET EXE assembly.
29 May 2006 by VictorVele
Example for read Magnetic Strip Reader using ActiveX, COM Object for KioskMsr reader
22 Aug 2012 by time-killer-games
I'm very aware of how to use an activeX control's properties in HTML. But how do you access the methods of an activeX in HTML? I've tried google, ehow, stack overflow, and other sites. Nothing worked. My custom C++ ActiveX embeds in the webpage perfectly, but it's useless unless I can use the...
22 Aug 2012 by enhzflep
You just use the dot operator - the same as you do in vb.Take this sample for example:var excelApp=null, excelFile=null, excelSheet=null;function initExcel(filename){ excelApp = new ActiveXObject("Excel.Application"); excelFile = excelApp.Workbooks.Open(filename); excelSheet =...
3 Feb 2011 by supercross99
Hello, I'm really new at all this so don't laugh too much at my stupid question. :) I am trying to embed the latest version of Ultimate Grid into Automation software that supports ActiveX components.I've downloaded all of the zip files for Ultimate Grid and Ultimate Toolbox.However,...
2 Feb 2011 by Manfred Rudolf Bihy
It's easy if you read the first couple of sentences on the project page here: The Ultimate Grid Home Page[^]"We are very happy to announce that we have made the decision to offer our commercial lineup of MFC libraries, including Ultimate Toolbox, Ultimate Grid, and Ultimate TCP/IP to the...
3 Apr 2006 by nieljake
This article explains how you can prevent ads and spyware, using your hosts file.
31 Oct 2013 by aatish442000
I have an xml file DataConfiguration.xml with this entry Petrel 2012 (64-bit) C:\Program Files\Schlumberger\Petrel 2012 ...
4 Sep 2015 by Nandeotifur
I am currently trying to extend functionality of a HTA/vbscript. The current coding will allow to look up a single user on AD, allow password reset, unlocking of account as well as display name, description, employee type, email, password validity timeframe, account status, home postal address,...
8 May 2006 by importfanatik23
How to add an LDAP address book into MS Outlook, using VBScript.
31 Oct 2004 by Rafay Bin Ali
How to add live content feeds to your weblog or web site.
24 Apr 2004 by Hesham Amin
This article is about creating ActiveX controls in Visual Basic 6 that has two extra mouse Events: MouseLeave, MouseHover
11 Mar 2012 by FCS001FCS
First, I am very new to VBA but have a little experience with MS Access as a light user.I am trying to setup a Bill of Materials (BoM) and have found a nice template data base (.mdb) that I have successfully converted to .accdb and it works great.It uses an "Adjacency List" table to...
4 Nov 2001 by S.S. Ahmed
This article shows how to create tasks in the SQL Server remotely.
4 Nov 2001 by S.S. Ahmed
Create a component to administer SQL server remotely, create tasks that remove themselves from the scheduler after performing the assigned job.
12 Sep 2013 by Shivprasad koirala
ADO.NET interview questions: Part 2.
5 Jun 2011 by RedDk
Ever try to use the Adobe .pdf references for scripting and VBScript? This is a reference viewing tweak.
6 Jul 2015 by itskumarvikas
ADODB.Command error '800a0e7d'The connection cannot be used to perform this operation. It is either closed or invalid in this context./imsnew/processlogon.asp, line 21line 21 is in boldset cmd=SERVER.CreateObject("ADODB.Command") cmd.CommandType =...
6 Jul 2015 by deepankarbhatnagar
Please Use Open & close connections. get help from these links below:thanks in advance.http://p2p.wrox.com/classic-asp-databases/1731-help-adodb-recordset-error-800a0e7d.html[^]http://www.vbforums.com/showthread.php?551278-ADODB.Recordset-error-800a0e7d[^]
20 Mar 2005 by bluechip_asia
TextBox Which Support Char Case, Filter, Decimal, Numeric
19 Mar 2009 by pzn3xq
I'm reading up on the ajax documentaiton and had a question on partial page updates...1) So do partial page updates only target controls that reside within an Update Panel?2) Even if a partial page update occurs, isn't a postback really truely...
19 Mar 2009 by fly904
pzn3xq wrote:1) So do partial page updates only target controls that reside within an Update Panel?I am confussed by what you mean with this.pzn3xq wrote:2) Even if a partial page update occurs, isn't a postback really truely occurring behind the...
23 Sep 2016 by Karthi Keyan
Hi We are using vbs script to monitor the services in SAP application.Below script was already implemented.It is listing only some services in SAP .Please help me in the script to list all the services.Out of 60 services 20 are displaying.Const ForAppending = 8DIM prefix, prelenDIM...
23 Sep 2016 by CHill60
It is going to be a problem with your WHERE clause inquery = "Select * from Win32_Service where Name like '" & pattern & "' AND ServiceType = 'Own Process' OR ServiceType='Interactive Process'"For a start you have a mixture of AND and OR without using brackets to define your meaning. Try...
9 Jul 2011 by R. Giskard Reventlov
Sounds like a job for regular expressions[^]. Start with that, look for examples and you should be able to come up with a solution.
9 Jul 2011 by Crianlarich
I had hoped to find a piece of software which would do what I require but have been unsuccessful so far. Googling the web pointed me to quite a number of software packages but none of them do exactly what I want. I have also searched this site to see if there was a vbscript which might do so but...
4 Aug 2003 by iranvig
An ActiveX Control - you can create a Skinable Form in Desgin Time.
26 Mar 2013 by namerg
Hello,I found the following script but i get a runtime error 13 type mismatch on the line that says "Set olMi = Fldr.Items(i)" Thanks for your help.Sub SaveAttachments() Dim olApp As Outlook.Application Dim olNs As NameSpace Dim Fldr As MAPIFolder Dim MoveToFldr As...
26 Mar 2013 by Zoltán Zörgő
Try: Dim olMi As Variant
26 Mar 2013 by Sandeep Mewara
Try:For i = (Fldr.Items.Count-1) To 0 Step -1 Set olMi = Fldr.Items(i)Type mismatch means that the object returned does not match what you are setting to. If above does not resolve, do JavaScript debugging and see for what value and when is the error happening. Try to look around...
2 Apr 2010 by Nish Nishant, Professor Cuthbert Calculus, Glenn Quagmire
This paper is a summary of a research exercise conducted in conjunction by Nish Sivakumar, Professor Cuthbert Calculus, and Glenn Quagmire.
16 Jan 2007 by parinit
A simple clock that sits on your desktop
20 Jul 2015 by govimuthu
im using below script, but not workingSet objEmail = CreateObject("CDO.Message")objEmail.From = "mail id"objEmail.To = "mail id"objEmail.Subject = "Service Is Down"objEmail.Textbody = "The Service ### has stopped."objEmail.Configuration.Fields.Item...
20 Jul 2015 by Abhinav S
Try these links -Check Service Status, restart if stopped, email results[^]Monitoring windows services with VBScript[^]
26 Nov 2013 by Anupama Rhiyas
Anybody Tell Me.What is the (Focus) code in vb.net?i want to know about meaning of (Focus) Code in Vb.net.Please Help Me?
26 Nov 2013 by martene
The word "Focus" means that a particular control (e.g. a textbox) is in focus or not. When a user clicks on/in a control like textbox then this control gets all the input (through the keyboard) from the user. When a user presses the TAB button on the keyboard like we do all the time filling up...
2 Sep 2016 by GenJerDan
We have an old old ASP web page that reads multiple text files from disk and processes them.It's incredibly slow, of course, and crashes almost daily.Currently, this is the code:For i = 0 To tNumberSites Set TStream = fs.OpenTextFile(SiteName) FileOpen = True Do While...
30 Nov 2003 by dzzxyz
This application demonstrates how to write a VB client for an AI chat bot.
25 Feb 2007 by Asim_Abbasi
Learn to implement RFC using Visual Basic as in the project we have implemented two RFC for Internet Relay Chat.
27 Nov 2008 by Vincenzo Rossi
EasyForm allows you to create ASP.NET-like forms, with state keeping and server side event handling
13 Feb 2009 by amattice
Date Format function for VBScript / Classic ASP
17 Oct 2000 by Uwe Keim
A simple guestbook application using ASP and an Access database
27 Feb 2009 by John Doherty
View the contents of Classic ASP Memory
4 Mar 2014 by Shivprasad koirala
10 Aug 2011 by Brian C Hart
I have a client who has a main website (it's huge) rooted at (on my dev box)C:\inetpub\wwwroot\Website.com\trunkIt's controlled with Subversion (SVN) (sucks to be the client by the way because I think SVN is terrible, but that's just my "religious" opinion). Anyway, their whole website...
10 Dec 2011 by thatraja
Brian C Hart wrote:I am going to kill the first person to tell me to use Response.Write or Server.MapPath or the tilde ~ because those functions are brainless, first because they don't allow you to use ".." and secondly because they are getting the website root wrong.:D Please don't.Better...
21 Apr 2011 by Paulo S X Soares
I need a simple function to convert an ASCIII string to a Unicode string, cause I need to display data in a web page.Why does not VBScript offer a so useful built-in function?
21 Apr 2011 by Sandeep Mewara
Look at this:An A-Z Index of Windows VBScript commands (WSH)[^]Wouldn't the combination of these two command do for you: Asc(String) Return ASCII code for string AscW(String) Return Unicode code for string
28 Mar 2016 by Krishna P Seetharaman
In one of my recent assessments of BizTalk client environment, we faced several environment issues like slowness, timeouts, etc. We made several changes in the settings after which there was improvement in performance and reduction in failures/timeouts. Here, we'll see the changes that were made.
13 Jun 2005 by S. Kelly
An example of using WMI, IP and Excel in a .vbs.
18 Dec 2014 by Member 11321655
Assuming that you are connected to a database table called Computers with the fields Computer, Hostname Room_Num, CPU_Type, Num_CPUs, Bit_Size, OS_Type, Memory, and HDD_Size, write the SQL Query String sqlStr such that the fields Computer, Room_Num, and OS_Type will be displayed for the records...