Indexzahl

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Thomas Putz (t.Putz_at_web.de)
Date: 07/02/04

  • Next message: Daniel Hold: "Active Directory Computer Script"
    Date: Fri, 2 Jul 2004 15:49:21 -0700
    
    

    Hallo,

    ich habe ein VBS Script das mit WMI Classes arbeitet.
    Nun benötige ich für meinen Script eine Variable die
    inkrementiert wird. Also immer um 1 höher gesetzt.

    Ich bin noch ein Anfänger in WSH aber bei andere Sprachen
    kann man das man "variable++" oder "variable = variable +
    1" machen.

    Meine Frage ist ob man mit VBS auch eine Rechnung machen
    kann.

    Vielleicht kann mir einer einen Tipp geben wie ich das
    verwirklichen kann.

    Ich wäre für jede Hilfe sehr dankbar.

    MFG

    Thomas


  • Next message: Daniel Hold: "Active Directory Computer Script"

    Relevant Pages

    • Re: Setting new date with offset in days
      ... or when necessary in PDFs where VBA is not ... Otherwise probably VBS would be better for utility scripts that run on ... It does mean that there are more experts in the WSH VBS groups ... that the WSH will provide that ability for a VB script but not for a JS ...
      (comp.lang.javascript)
    • Re: Scripting file types
      ... If you're writing a quick and dirty script I might agree the .vbs file is ... The .wsf file has tags for an automatic help window with automatic text ... What is a .wsh file? ...
      (microsoft.public.scripting.vbscript)
    • Re: WSH Where to find it? And is it RichTxt32-like trouble maker?
      ... CScript.exe - that run a script. ... WSHOM.OCX, VBScript.dll, JScript.dll, ... pre-installed support running VBS and JS files. ... more up-to-date than BAT files when they started using Windows. ...
      (microsoft.public.vb.winapi)
    • Re: Questions about GetRef() and ASP, etc.
      ... > stack does NOT extend into a called procedure's scope. ... > script requires catch-all error handling, however, it is often best to set ... > unexposed functions, mix VBS and JS, etc. WSCs are fairly well documented ... > The Err object appears to be misdocumented in the MS VBS documentation. ...
      (microsoft.public.scripting.vbscript)
    • Re: Help with values for Error Trapping
      ... The point of a script like VBS is to use many different ... The Err object is an intrinsic global object available under all hosts. ... is error-trapping status in effect at any level in the stack. ...
      (microsoft.public.scripting.vbscript)