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 Chriss Miller 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: slint
  • Content: Threads
  • Order by date
  1. slint

    Get uniqe ID to use in next table

    I'm trying to get the hold of the uniqe IDnr compID from table inventTB to insert in the table inventNIC but i cant seam to get it right. Can anyone point me in the right direction... 'On Error Resume Next Set oShell = CreateObject("wscript.Shell") Set env = oShell.environment("Process")...
  2. slint

    Either BOF or EOF is True

    I keep getting the Either BOF or EOF is True error on line 74 in the script. Background: i have a script that runs when loging in to the domain, the scripts runs an inventory of the computer with wmi. And i want these data from the wmi query to be added to a sql database. The first part in the...
  3. slint

    Get Mac and IP address from 98 client

    I have been trying with wmi and it works fine on win2k and xp but i suspect that wmi isent something that you can query in win 98. So how do you get the info from a win 98 machine. Set colAdapters = objWMIService.ExecQuery("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled =...
  4. slint

    Overwrite textfile

    How can i overwrite a txt file if it exist and create the txt file if it dosent exist, i have tried the code below but with no luck. Set fso = CreateObject("Scripting.FileSystemObject") Set objFSO = CreateObject("Scripting.FileSystemObject") If objFSO.FolderExists("C:\Data\SCRIPTS\") Then...
  5. slint

    Display message, msgBox...

    How do i display a message, like the msgBox, that closes after 10 sec if thers no user interaction so that the rest of the script is processed. A vb/batch combo that maybe explain my needs Call MsgBox ("Hello world!") -timeout /T 10
  6. slint

    Copy file from cd to local folder

    I cant get this script to work... I want to copy myfile.vbs from CD-Rom drive to Autostart in All users folder. i used a similar but it called cmd.exe to do the copy. Dim value1, ws, strAstart, WSHshell Set ws = WScript.CreateObject("WScript.Shell") value1 =...
  7. slint

    Rename all files in folder to sequent number from A10001 and up..

    I'm about to change the file name of a lot of files and i found this script. I have modified it a bit but the prob is that it renames the first file to A10001.vbs the second to A10001_.vbs the third to A10002.vbs, forth A10002_.vbs If i remove the last part in the script it only ren one file in...
  8. slint

    Add one row of text to top of 300 files

    I have 300 files and i want to add strCompN = "intNumber" to the top in all the files how do i acomplish that? I have manage to add strCompN in one file 300 times but not strCompN 1 time in 300 files. This is the code i have been working with. IntNumber = 10001 Const FOR_READING = 1 Const...
  9. slint

    Change comp name, & strCompN

    Have some trouble with this one.. The code below is taken from microsofts site - http://www.microsoft.com/technet/scriptcenter/scripts/ad/computer/cptrvb14.mspx As it is now the script works, but... strComputer = "." Set objWMIService = GetObject("winmgmts:" _ &...
  10. slint

    Copy file wont work..

    I cant get it to work. The script extrakt the correkt path and when it should copy it just blinks and script finish Dim value1, ws, strAstart, WSHshell Set ws = WScript.CreateObject("WScript.Shell") value1 = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell...
  11. slint

    Inputbox max number of chars

    If i have a inputbox that i would like to lock so that you only could enter 5 chars how can i accomplish that. I found something that might be right at http://www.autoitscript.com/autoit3/docs/functions/InputBox.htm InputBox ("Enter New Computername.", "", "*") but i have been testing and...
  12. slint

    Validation.. And tips for logonscript!

    I have compiled a script with parts from two diffrent examples from Mark D. MacLachlan and i have been testing it and it works realy good. The script checks two things.. the first it checks is if dhcp address is active and if it is it run another script and quit, if dhcp is not used it checks...
  13. slint

    800A000D - Type mismatch in Select

    I found markdmac's logonscript faq that retrives dhcp address and do some things with it. Now i'm trying to do the same but with static address. I get an error in select row. Select Case Left (ActiveIPAddress, 10) Error: 800A000D - Type mismatch Source: Microsoft VBScript runtime error. pls...
  14. slint

    Remove computer from domain without domain present

    Hi U all.. Is there a way to do as follow by script. I'm about to change domain on our network (1000 clients) The former admin dident set things upp right and it's time for a littel cleaning. The old domain is location.mydomain.com and the new domain is mydomain.com, bacause the two domains...
  15. slint

    Publish web folder

    Is there any one that knows how to web share a folder with script? I would like to share a folder called public_html with the alias for the username. So if my loginname is slint then i would like to share my public_html as slint. The public_html is placed in my homefolder. Ofcourse i can do it...
  16. slint

    Something wrong with Loop

    I'm trying to create users and then add the users to a group. It's working greate if i leave the add to group part out. There is something wrong with the loop in the bottom. On the line from 116 to 119 it defines the group and the path to the group. The first user is ok then it loops and...
  17. slint

    IIS and FTP user isolation mode with VBscript

    I'm not a programmer in any way and because of that i realy need help with this. Maybe somebody have had a peek on the ftp user isolation mode in iis 6. U can create a FTP site that isolates users in a defined path by extracting values from the AD. I have set up such ftp site and got it to...

Part and Inventory Search

Back
Top