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 Mike Lewis 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: irkey
  • Order by date
  1. irkey

    AutoCorrect - Office Word, Excel

    Thanks a million PHV. Your code for Word worked great! But the code for Excel is not working for some reason.
  2. irkey

    AutoCorrect - Office Word, Excel

    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&quot...
  3. irkey

    Query computer accounts in specific container in Active Directory

    How would I look for specific computer accounts in a specific container in Active Directory?
  4. irkey

    Query Registry

    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...
  5. irkey

    Executing VBscript

    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?
  6. irkey

    Deleting Registry Subkeys

    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 =...
  7. irkey

    Username and Password

    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.
  8. irkey

    Username and Password

    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!
  9. irkey

    Username and Password

    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&quot...
  10. irkey

    Clearing Event Logs

    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...
  11. irkey

    VBScript newbie question

    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.
  12. irkey

    VBScript newbie question

    I can convert it to all lowercase and I still cannot get it to work correctly. Help!!!!! It should be staight forward but alas....NOT!
  13. irkey

    VBScript newbie question

    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...
  14. irkey

    VBScript newbie question

    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...

Part and Inventory Search

Back
Top