HTA w/ VBScript to open and copy links
Note: I moved this from Stack Overflow to Code Review by suggestion of Tacoshy who added: "Instead of using an onclick attribute, why not simply use a single function with either a switch statement or...
View ArticleCheck if an XML file exists then change URLs in it
This is my first VBScript I have ever written and I would like to know if there is any obvious blunders in the code. All the code should do is check if file exists then change the Yahoo URL to the...
View ArticleHaving issue running Vbscript to install a EXE [closed]
I'm trying to my vbscript to install a exe file , I have used this same script to install msi files without any problems, my log is just saying exit 1. So not sure of the issue I'm over...
View ArticlePython SQL insert to MSAccess with VBScript
I have a business use case that required running SQL insert queries to a local MSAccess database with a Python script. The actual script does many other things and the SQL function is just one of them,...
View ArticleA big prank using VBScript
So, I have made a BIG prank in VBScript.First part is to prank with a Dummy HTA splash screen using an encoded PNG image inside it (Not included) and kill all windowed processes+explorer and keep it...
View ArticleCount bits in VBScript
I'm trying to write a function that returns the number of bits set in a 32-bit integer in VBScript, it's just for practising the language. The function I've written so far looks okay, but I'm wondering...
View ArticleRight-trimming text files
below vbscript code took me 3hours just to complete trimming whitespaces of a 24MB file any tips to speed up the process below?dim filename, path \'variables Set objFSO =...
View ArticlePlaying music in the background while another task is running
Sometimes some tasks can be taken a lot of time to end up.This code is created in order to play a random radio music in background while the script is running another task until to finish up and the...
View ArticleLoading text into an array when fields are in random order
This script reads records from a CSV file of customer names and addresses. The first record of the file is the header (field names); the fields could be in any order, and sometimes have different...
View ArticleMultithreaded Excel + VBScript Timer: Snake Game Demo
Multithreaded Excel + VBScript TimerAfter reviewing these post: Snake in Excel in… VBA? and Drawing a snake using arrow keys in Excel using VBA, I decided to work on creating a VBA Timer.The typical...
View ArticleStore history data using customization features of a profesionnal software
ContextMy company uses a system that has access to the state of different items in the plant.This software can be customized, by executing a single VBScript function, at a given interval.The values...
View ArticleRecursive function to compare XML files using MSXML DOM
I have put together this function which compares two XMLs. On debugging, I found out that there are lot of useless loops which might cause performance problems for me if the files to compare are very...
View ArticleComparison of excel files, cell by cell
below is the code that i created as a POC towards an implementation for 2 excel file comparison (cell by cell)This was just to test the logic, which works as expected, however i found out that for big...
View ArticleScript for gathering information on computers getting stolen
I have put together a small VBScript to gather a bunch of information and email at scheduled intervals, so that one day, should it happen, and my computers are stolen, I may be able to provide relevant...
View ArticleVBs to query AD
I'm trying to get authentication with AD and to do this I've already made this code. Can anyone provide me if it's correct or not to do this or if I have a better solution.On Error Resume NextSet obj =...
View ArticleVBA copy paste loop
I have 2 Excel files: the first is the source file "Practice_New.xlsx" and the second is a mapping file "A_File.xlsx". A_File is a mapping file which contains cell reference of the source file...
View ArticleCounting instances of a string in a binary / unicode file using regex [closed]
(Originally posted on Stack Overflow)I need to run through a number of bespoke files (I'm unsure if they are unicode / ascii or binary so have attached a snapshot through notepad++). I'd like to count...
View ArticleWeb scraping VBA and VB Script
I am working on a project on VBA where the objective is to have a "program" that fetches rates from a website called X-Rates, and outputs to excel the monthly averages of a chosen country. Initially I...
View ArticleMaking a script file to perform maintenance
I wish to make a file to click on to do the 'usual' tasks I would do to clean/perform maintenance on my mother's computer when I'm not present. I made a script file and took a few command lines from...
View Articlepulling specific data from XML from inside 3rd party application
Another script that is used as a token to extract information from a 3rd party application, the application does other things in the background that I don't specifically know about. This code does work...
View Article