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 =...
steinb,
I have tried your method and I get an error message say "Type mismatch: 'InputLine'", Code 800A000D. I have registered the scblib.dll and put the file in the Windows system directory.
Since I am new to VBScript, I have no idea what you're talking about. I went to the sites you mentioned, but I cannot find anything on functions...??? Anyone else??? Help!
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...
Thank you jmcallister! Once I trim-ed the spaces, the script works as expected. Thank you very much and thanks for the little debugging trick, I didn't know that was available.
Sorry, my original script I was testing a few scenarios. But you are correct it should be a variable (no quotes). You said you got this script to work??? I still cannot get it to work as I expect. Case matches as far as I can tell....that is why I echo the results for objComputer.Model first to...
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.