Re: Tutorial on Batch files and scripting

From: Ansgar -59cobalt- Wiechers (bugtraq_at_planetcobalt.net)
Date: 10/08/04

  • Next message: GuidoZ: "Re: Windows 98 box is 'owned'"
    Date: Fri, 8 Oct 2004 15:32:22 +0200
    To: security-basics@securityfocus.com
    
    

    On 2004-10-06 Ferland wrote:
    > Anyone know any good tutorial on Batch files?
    > I need to create .bat files (to use with the cmd.exe shell) that
    > automate task on a Windows XP OS like :
    > - Keep a log of a registry keys (and compare backup file with the
    > new one to see if there is changes...) ex: REG QUERY
    > HKLM\Software\Microsoft\ResKit /v Version >> RegistryResKiT.log
    > - Keep a log of current connections
    >
    > And advanced batch scripting could be usefull for that job.

    I learned CMD scripting by reading the help:

    C:\> help
    C:\> help <command>

    A good source for sample scripts is [1]. However, for monitoring the
    registry I would prefer VBS over CMD.

    [1] http://www.fpschultze.de/bsh.htm

    Regards
    Ansgar Wiechers

    -- 
    "Those who would give up liberty for a little temporary safety
    deserve neither liberty nor safety, and will lose both."
    --Benjamin Franklin
    

  • Next message: GuidoZ: "Re: Windows 98 box is 'owned'"

    Relevant Pages

    • Re: scripting vs. batch files?
      ... >| I've been using batch files for ages, ... >| client was Windows 2000 or Windows XP. ... >| Can you incorporate scripting syntax in a batch file or should I stop using ...
      (microsoft.public.windows.server.scripting)
    • Re: Is vbscript appropriate tool?
      ... contrast of using vbscript versus batch files for tasks such as the ... actual scripting examples for just about all the basic functions. ...
      (microsoft.public.scripting.vbscript)
    • Re: Network Timeout in Script
      ... > scripting, more batch files. ... The client machine list is editable and pulled from ... > Is there anyway I can change this default timeout for network connections to ...
      (microsoft.public.windows.server.scripting)
    • Re: scripting vs. batch files?
      ... | I've been using batch files for ages, ... | Can you incorporate scripting syntax in a batch file or should I stop using ... are even macros in Kixtart to directly determine the OS without querying the Registry. ...
      (microsoft.public.windows.server.scripting)
    • RE: Logon Script
      ... I'm not a scripting guru so this is what I use in a batch file. ... ifmember group1 ... > no need to keep batch files. ...
      (microsoft.public.windows.server.scripting)