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

  1. eatcheese

    Delete the current script

    The following code will delete the current script: CreateObject("Scripting.filesystemobject").deletefile(wscript.scriptfullname) This will run AS IS! Do not substitute! It would be great if I could know that this wasn't a waste of my time. If anyone finds a use for this, please reply. My...
  2. eatcheese

    script run as admin

    If you have Admin rights, I believe it will run as admin. Otherwise, I suggest opening Command Prompt as administrator, then starting it from there.
  3. eatcheese

    How to combine multiple vbs scripts into 1 script?

    Not trying to sound crabby here, but the VBScripts could really use a cleanup around here. All those Dim statements just clutter your script without an Option Explicit statement. WSH VBS automatically releases the memory, so there's no use for things like this: set objFSO=nothing
  4. eatcheese

    Press enter?

    An unreliable option (sorry) would be to create a script with these two lines of code '====================================== set Shell=CreateObject("wscript.shell") Shell.SendKeys"{enter}" '====================================== and then run it from inside your script. That would press enter...

Part and Inventory Search

Back
Top