How do i write a batch file?

Carnival Forces

Supreme [H]ardness
Joined
Feb 9, 2003
Messages
4,297
how do i write a batch file to do automated tasks like editing the registry (specifically, in Win 98 (first edition, yuk :())?

for example, i'm about to install Win98 on a computer and, in case i have to do it again, rather than have to do all the tweaks by hand again, i want to write one huge "tweak.bat" file to do it for me.

what tweaks, you ask? the ones in the G[H] tweak guide. (under Win98)

 
Does the REG.EXE command exist in Windows 98? If it does, you can just string together a bunch of invocations of this command to do what you want.

If not, you've got a bit of a problem. Either find a similar tool and get it installed on your Win98 systems, or figure out if REGEDIT solves your problem. REGEDIT is good for loading values, but it can't delete, rename, test, and so on.

Code:
C:\>reg /?

Console Registry Tool for Windows - version 3.0
Copyright (C) Microsoft Corp. 1981-2001.  All rights reserved


REG Operation [Parameter List]

  Operation  [ QUERY   | ADD    | DELETE  | COPY    |
               SAVE    | LOAD   | UNLOAD  | RESTORE |
               COMPARE | EXPORT | IMPORT ]

Return Code: (Except of REG COMPARE)

  0 - Succussful
  1 - Failed

For help on a specific operation type:

  REG Operation /?

Examples:

  REG QUERY /?
  REG ADD /?
  REG DELETE /?
  REG COPY /?
  REG SAVE /?
  REG RESTORE /?
  REG LOAD /?
  REG UNLOAD /?
  REG COMPARE /?
  REG EXPORT /?
  REG IMPORT /?
 
mm idk if that's in win98...

and what would i write in the batch file?
just
reg /whatever
reg /whatever2

etc etc?

 
Yep; just string together REG commands to do what you want. You can get help on the REG subcommands (including examples) using /? . Try

Code:
reg add /?

for example.
 
k, thanks.

i think Ice Czar had a method that worked regardless of Windnoes version, anyone remember it?

 
Back
Top