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 strongm 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: *

  1. DanaHallenbeck

    Object status fails with REG.EXE

    The reg.exe syntax is different under Windows XP than it is under Windows NT and 2000. Run "reg /?" or "reg query /?" to find the new syntax.
  2. DanaHallenbeck

    Passing An Array from a Function

    It appears from your post that graphicCode is being declared twice. If you declare it globally, you don't need to pass it to or from a function since you are modifying the global variable. Try this: remove the declaration from the function and replace: graphicCode() =...
  3. DanaHallenbeck

    Clear Screen (CLS) Using VBScript

    In theory that should work...In practice it doesn't. I tried that approach initially and it didn't work. What I ended up doing was creating an HTA app. It took a while, but the interface is so much simpler now. I also created an XML file to hold the menu information, so all I needed to do...
  4. DanaHallenbeck

    Clear Screen (CLS) Using VBScript

    Thanks for the response. An HTA interface would require extensive reprogramming since this batch file is quite complex...and I don't have a lot of HTML experience. I am looking for a quicker fix since this is needed soon. I tried the WshShell.exec method, but it will not display a command...
  5. DanaHallenbeck

    Clear Screen (CLS) Using VBScript

    I am trying to replace an old batch file with a vbscript application running under cscript.exe in a DOS window. My problem is that I am using menus and need a way to clear the old menu so I can print the new one. I cannot get the DOS command "CLS" to work from within the script and have pretty...
  6. DanaHallenbeck

    Split into single letters

    The TextStream object will allow you to read a specific number of characters. txtChar = object.read(1) This should do the trick. Dana Hallenbeck
  7. DanaHallenbeck

    copying files

    Set Filesys = CreateObject(&quot;scripting.filesystemobject&quot;) Filesys.CopyFile(<path & filename>, <path & filename>, True) The &quot;True&quot; at the end tells it to replace the destination file if it exists...obviously &quot;False&quot; does just the opposite. Dana Hallenbeck
  8. DanaHallenbeck

    Last Login

    Try it on multiple accounts...if you are not already. See if you get data on any of them. Do you get other properties if you query them(ie - user.fullname, user.name, etc.) Try making the query more specific: Set user = GetObject(&quot;WinNT://<domain>/<username>,user&quot;) wscript.echo...
  9. DanaHallenbeck

    Last Login

    Are you running this from an NT 4.0 workstation? If so, do you have ADSI installed on it? Do you have the administrative rights? Dana Hallenbeck
  10. DanaHallenbeck

    Register and unRegister .dll files

    try this: regsvr32 /s file.dll Dana Hallenbeck
  11. DanaHallenbeck

    Last Login

    Try this. You can still use ADSI in a WINNT environment. Set user = GetObject(&quot;WinNT://<domain>/<username>&quot;) wscript.echo user.lastlogin Dana Hallenbeck
  12. DanaHallenbeck

    High failure rate for SCSI hot-swappables?

    Something else you may want to look at is the cables. I noticed with the lp2000r's that some of my drive problems were the result of a single strand of the SCSI 3 cable being severed. There is a lot of sheet metal and sharp edges in the HP server boxes... Take a close look at the cables, or...
  13. DanaHallenbeck

    ISA Firewall &amp; SOCKS

    Thanks for your help. Dana Hallenbeck
  14. DanaHallenbeck

    Directory Size

    Try something like: set logfile = filesys.opentextfile(&quot;location&quot;,1,True) This is just the basic syntax. A good resource for basic information on writing or manipulating files is http://www.devguru.com good luck dana hallenbeck
  15. DanaHallenbeck

    Directory Size

    Try something like this: Dim filesys, folder, folders, subfolder Set filesys = CreateObject(&quot;scripting.filesystemobject&quot;) Set folders = filesys.getfolder(&quot;d:\users&quot;) For Each folder In folders.subfolders Set subfolder = filesys.GetFolder(folder.Path &...
  16. DanaHallenbeck

    Disconnecting session.

    Something else you could do is centrally locate a dll or ocx on a common network share. This could then be registered and unregistered (via the script) by any computer with access to that share without actually being depolyed to that computer. Dana Hallenbeck
  17. DanaHallenbeck

    Ini and File Path Question....

    There are functions and classes freely available on the web that allow manipulation of ini files. Try searching for &quot;vbscript read ini file&quot;. You can also try this link: http://home.att.net/~wshvbs/wshIniClassPage.htm Good luck Dana Hallenbeck
  18. DanaHallenbeck

    Schedule a task

    I have found the best way to do this is to Shell out an &quot;at&quot; command. The COM interface for this procedure is limited unless you download a more robust dll for scheduling tasks. Example: dim WshShell set WshShell = CreateObject(&quot;Wscript.Shell&quot;) WshShell.run &quot;at...
  19. DanaHallenbeck

    User's mailbox locations

    You could probably query the Exchange servers, but that would kind of defeat the purpose of this script. Sorry...off hand, I can't think of anything. I will keep my eye out for a possible solution, though. Dana Hallenbeck
  20. DanaHallenbeck

    User's mailbox locations

    This will loop thru the users in an Active Directory OU and give you their mail server. You can adapt it to what you need. Set ADSrv = GetObject(&quot;LDAP://yourdomain.com/OU=UsersOU,DC=yourdomain,DC=com&quot;) For Each user In ADSrv wscript.echo user.msExchHomeServerName next Dana Hallenbeck

Part and Inventory Search

Back
Top