I need to trigger an event in script when each time a counter passes a given number. Let's say 1000.
Below is a sample of what I want to achieve.
Option Explicit
Dim oShell
Dim iCounter,i
'Create Shell object
Set oShell = Wscript.CreateObject("Wscript.Shell")
iCounter = 0
wscript.echo...
Hi, I've got a problem with a ReDim of a multidimesional array. I can't figur out what's wrong. Any help would be appreciated.
Error : Microsoft VBScript runtime error: Subscript out of range: '1'
Basically this is this line :
aIndex(iCnt,iDim1) = sLine
This is the whole sub wich is...
I'm doing a script wich must convert a string from one format to another.
This is the string :
c9e0dbb492006a49864a94100fb34da9
This is how it should be after converted :
\c9\e0\db\b4\92\00\6a\49\86\4a\94\10\0f\b3\4d\a9
I've tried to twist my head to figure out a smart way to do it, but I'm...
I'm going to write a script wich will check that a server is listening on some ports.
Anyone know if there exist a WMI class or a way to get this data out, besides using : "netstat -an".
I know I can use run/execute nestat and parse the output, but I have a feeling that this can be done more...
I've created a backup script, maybe others might need it or parts of it. Since this has been my #1 forum, I thought I should share it with you...
SBBS.vbs :
'***************************************************************************************************************************
'...
I'm creating av sub in a script wich is going to do the following :
Connect to a folder, list subfolders, delete all subfolders above i(integer) keeping the newest folder(s).
Ex :
C:\Folder
C:\Folder\A - 01.01.2005
C:\Folder\B - 01.02.2005
C:\Folder\C - 01.03.2005
C:\Folder\D - 01.04.2005...
I'm creating a script wich is going to read some variables from a txt file. To make the script even more usefull, I want to include computer variables in the text file. Making vbscript expand these.
However, I'm a bit stuck on how I should parse the txt string. I think this should be done in a...
Anyone know if it's possible to script Wlan access config to WinXP SP2? I know there are some options wich include either USB with XML/autorun or Active Directory. Unfortunately non of above is possible.
TIA :)
We're writing a script wich is going to do the following :
A) Run on startup, resumbit itself
B) When resubmit is running, connect to a url and get the content.
C) Write the content from the url to a vbs file
D) Launch the vbs from C)
E) Put result back to web
I have some format problems with...
I'm having a bit of a trouble getting some data into an arryay. The problem is the array arrTmp wich I would like to be a dynamic array. I've tried to declare it with just Dim arrTmp, but that gives me an error. If I declare it with a fixed subscript, like the code below. It works fine, but this...
I'm working with a script wich among a lot of things is going to clear homeDirectory/Drive attribute on user account, however I'm a bit stuck here.
I've tried this, with no luck :
objUser.Put "homeDirectory", ""
objUser.Put "homeDrive", ""
objUser.SetInfo
I also played around with Const...
I'm going to collect hardware inventory in my network. A couple of weeks ago I did find a nice script wich would work as a base... However I've reinstalled the computer I downloaded it to, and I'm not able to figure out the url to the site. Done a lot of searches.... Maybe someone here could...
I'm a bit stuck here, could need some help...
I've got one application wich need some entries in a txt file. I've written a script wich check existing file, read all lines into an array, and check if old entries exist. If found, entry is checked. Then it copies the array to a new one, filtering...
How can I split a string without a delimeter.
Let's say I've got this string : abcdefghijklmn, and I would like to split it into an array of two characters, how can this be done?
I've been twisting my brain for this a couple of hours, and I can't figure it out. Any help would be appreciated :)
The script is going to create a computer account in AD, set wich RIS server to use, and netbootGUID. A part of the script is taken from MS ScriptCenter, wich I've modified to do mentined tasks. However, I'm not able to make it write the netbootGUID.
This is the script :
Option Explicit
Dim...
I've in middel of creating a script wich is getting some input from a user. The input is parsed, and if the input isn't in a specific format I would like to launch the initial inputbox. The input box is located in a sub.
However, when I try to launch the sub second time nothing happends. I've...
Hi, I've got a problem with a couple of macros. Our company has just changed from Office97 to Office 2003, and our old templates/macroes are obsolete.
I have corrected most of it, but I do have a little problem. I have one template, let's call it X wich is using code from a "master" template...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.