I'm trying to run the following script and keep gettin this error...Microsoft VBScript runtime error: Object required: '[string: "..."]'It happens on line three. Please help!
Dim objnetwork
Set objNetwork = WScript.CreateObject("WScript.Network")
Set strComputer= objNetwork.ComputerName
Set...
I am new to vbs and I want to delete network drives if they exist and then map new network drives. Below is a script I put together but it does not work. Please help!
Set WSHNetwork = CreateObject("WScript.Network")
Set objNetwork = WScript.CreateObject("WScript.Network")
If exist...
This is the script I came up with, but when I run it nothing happens. Can someone please help.
Dim objShell, RegLoc
Set objShell = WScript.CreateObject("WScript.Shell")
On Error Resume Next
RegLoc = "[HKEY_Current_User\Control Panel\International]"
objShell.rewrite...
I have a few bat files that I want to convert into vbs. They basically are if then statemnets but I am not sure how to convert them. The first is...if not exist "C:\programfiles\..." copy "C:\programfiles\..." The others to are...if exist "C:\programfiles\..." del "C:\programfiles\..." . Can...
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.