Start with Windows Notepad to make the file. (it's plain text) Create the batch file in Notepad and save it as filename.BAT instead of filename.TXT
NOTE: Windows NT/2000 includes a much more robust batch system for the command-line. It uses the extension .CMD instead of .BAT. ".CMD" files won't work under Windows 98 You can use a batch file to run various DOS command and special Batch file programming commands. GOTO and label variables are supported in Batch to allow you to make decisions during runtime. It can also call and set built-in environment variables. Some common variables are: %WINDIR%, %TEMP%, %PROMPT%, %PATH%, %DIRCMD%, %ERRORLEVEL% in Windows 98, and... %SYSTEMROOT%, %SYSTEM32%, %HOMEDRIVE%, %SYSTEMDRIVE%, %USERPROFILE%, %ProgramFiles%, %USERNAME% in Windows 2000/NT. You can view the current environment variables by using the SET command. Type: set [ENTER Key] to view the current variables, or use SET varname=value to assign new variables. You can redirect output form commands by using the > and 2> to files and devices. For example: DIR %WINDIR% > directorylist.txt ...will generate a file called directorylist.txt with the screen output from a Directory command (DIR) for the directory C:\WINDOWS. NOTE: No screen output will display. "2>" is used to capture Error Messages only from commands For example: copy missingfile.exe destination.exe 2> errors.txt ... will output any "File Not Found" errors to errors.txt that the copy command generates (if any errors occur) You can use this concept to keep logs of errors from other batch files. "2>>" and ">>" do the same thing as their cousins, but append the data instead of overwriting the file. It's important that if you want a Batch file to work on it's own to suppress the prompts for some commands. Use: commandname -? For example: dir -? Shows the valid options for the DIR command. ...to view the options available for that command. I can write you a sample. What does it need to do? --- In [EMAIL PROTECTED], "mooecc" <[EMAIL PROTECTED]> wrote: > Can someone walk me through...step-by-step...how to create a batch file for > Win98SE? > Thanks, > Shona > > > [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/67folB/TM --------------------------------------------------------------------~-> If you have any questions or problems with any aspect of this site, please feel free to contact me directly [EMAIL PROTECTED] Please do not post personal issues directly to the group. To unsubscribe from this list, send an email to [EMAIL PROTECTED] Thank you for using A-1 Computer Tech Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/A-1-Computer_Tech/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

