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")...
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...
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 =...
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...
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
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 =...
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...
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...
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:" _
&...
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...
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...
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...
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...
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...
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...
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...
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...
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.