Hi,
Can anyone tell me how to convert this VBA code to vbscript...or if this is even possible???? I was told that any VB code can be converted to vbscript.
Sub AutoCorrectCaptureWORD()
'
' AutoCorrectCapture Macro
'
AutoCorrect.Entries.Add Name:="test", Value:="TEST"...
I'm having trouble querying the registry for a key and value. I'm trying to find the active nic by querying on the control key in the enum\pci registry key. I have several nics and the active one has a control key in the registry so I'm trying to write a script to find the active nic. Unless...
Hi,
I'm really new to VB. NET and am just learning the basics. So far I have been using VBScript most of the time. Is there a way to execute vbscripts from within VB. NET?
I have seen the posts of deleting registry subkeys by enumerating them and checking with a loop. Does anyone know if you can manually delete the subkeys using this method. I am deleting the last subkey first then working my way up.
Set WshShell =...
Does anyone know how to get the username and password in VBScript? I want to be able to map a network drive and pass the logon credentials to it.
set net = Wscript.CreateObject("Wscript.Network")
net.MapNetworkDrive "Z:", "\\server\share", , "sUserName"...
Can anyone tell me how to clear all the event logs on a W2K machine?
I found the following script, but it doesn't clear the Security log. Help!
set LogFileSet1 = GetObject("winmgmts:{impersonationLevel=impersonate,(Backup)}").ExecQuery("select * from Win32_NTEventLogFile where...
See the code below....
I cannot figure out why the If statement is not executing properly. I think I have the syntax correct but I do not get the wscript.echo portion of the if statement to work.
I have tried to trim the leading and trailing spaces also, but I cannot figure out what I'm doing...
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.