Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: JadeKnight
  • Content: Threads
  • Order by date
  1. JadeKnight

    Mathematical equation for counter

    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...
  2. JadeKnight

    Redim of multidimesional array

    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...
  3. JadeKnight

    Split a string without delimeter...

    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...
  4. JadeKnight

    Maybe usefull to someone... Script to backup Microsoft Virtual Server

    '*************************************************************************************************************************** ' VirtualServerBackup.vbs Ver. 1.0 '***************************************************************************************************************************...
  5. JadeKnight

    Current TCP/IP Connections

    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...
  6. JadeKnight

    Script to recreate shares

    Maybe usefull to someone... '*************************************************************************************************************************** ' ShareJuggler.vbs Ver. 1.0...
  7. JadeKnight

    Backup Script

    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 : '*************************************************************************************************************************** '...
  8. JadeKnight

    Sort folders by date

    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...
  9. JadeKnight

    Synopsis of returncode (error) filesystem object

    I'm looking for a synopsis of return codes from filesystem object, especially error codes. Anyone have such a list, or a url?
  10. JadeKnight

    Parse/Loop string

    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...
  11. JadeKnight

    Wlan config

    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 :)
  12. JadeKnight

    Textformat from Url to file...

    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...
  13. JadeKnight

    Dynamic array variable

    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...
  14. JadeKnight

    Clear Homedrive on User Object in AD

    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...
  15. JadeKnight

    WMI Inventory to SQL

    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...
  16. JadeKnight

    Copy Array to Array deleting entries

    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...
  17. JadeKnight

    Split string without delimeter

    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 :)
  18. JadeKnight

    Constraint Violation --> ADSI writing netbootGUID

    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...
  19. JadeKnight

    Reuse of Sub

    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...
  20. JadeKnight

    Closing used template from file...

    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...

Part and Inventory Search

Back
Top