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

    Possible to compile vbs code into exe?

    Also take a look at freeware controls nonModalDialog and wshDialog
  2. Blaine2

    vbscript listboxes on local computer

    It's possible provided you use a control such as wshNonModalDialog or wshDialog. Both of these are easy to find in a Google search and have examples. For listboxes I'd look at wshDialog first
  3. Blaine2

    cscript.exe and %errorlevel% , Variable is undefined

    The error is occuring at compile of the script before it executes. Because of this there is no error level or exit code to return. Keep using OPTION EXPLICIT. It's good practice to declare before using. I find it also helps to group my variable declarations at the top of the script or...
  4. Blaine2

    View directory contents dynamically

    An excerpt from one asp page we use is below. It reads the files in a folder into an array and then builds them into a table of links. You could extend it to sub directories with a bit of work. <% Response.Buffer=True%> <%Response.Expires=0%> <% ' By: Blaine Wheeler ' October 8, 2002 ' DCS...
  5. Blaine2

    Read standard out into a variable

    Confirm that the version of WSH on your 2k machine is 5.6. 2k originally came with version 2 which didn't have this functionality
  6. Blaine2

    using vbscript to open file and replace text

    In smaller files it's not noticeable different, but in large files it's definitely quicker. The real advantage of learning Regular Exp is that they are so much more flexible than &quot;Replace&quot; and have more compact syntax. It took me several reads through the WSH docs for pieces of the...
  7. Blaine2

    Progressbar needed

    Look into these 2 places: http://home.att.net/~wshvbs/index.htm#wshLtWtNonModalDlg and http://home.hccnet.nl/p.vd.klugt/
  8. Blaine2

    using vbscript to open file and replace text

    You should also check out the Regular Expressions if you want clean fast replacing.
  9. Blaine2

    Can I catch external errors?

    With Windows Script Host 5.6 or better use the Exec method which allows you to catch the stdout and stderr streams. I find this works better than Run. example: Dim oExec Set oExec = oWsh.Exec(ExecStr) Do While oExec.Status =0 Wscript.Sleep (100) Loop If oExec.ExitCode <> 0 Then...
  10. Blaine2

    Encrypting a password in a vbscript, is it possible?

    The simplest thing to do is encode the whole script using the script encoder from MS screnc
  11. Blaine2

    ShellExecute Multiple Parameters

    Here are 2 example snippets I use when I have multiple parameters. '********************************** ' Use this method when I have to put a parameter in &quot;&quot; mid = &quot;&quot;&quot;C:\Program Files\FormFlow\Uninst.isu&quot;&quot;&quot; strRemove = &quot;C:\WINDOWS\IsUninst.exe...

Part and Inventory Search

Back
Top