Do you have a good place to start when looking at how to design batch files. I'm new to this whole scene and looking at getting started somewhere, anywhere in fact.
Here is a good resource: http://www.tnd.com/camosun/elex130/dosbatchtutor1.html
And here: http://www.infionline.net/~wtnewton/batch/batguide.html
Also, I found this batch file in a program that makes USB devices bootable. Here it is:
- Code: Select all
@echo off
rem This batch file was created by ©2007 PDLA http://pendrivelinux.com
rem SYslinux ©1994-2006 H. Peter Anvin http://syslinux.zytor.com
cls
echo -----------------------------------------------------------------
echo This batch file will prepare drive %~d0 for boot using syslinux!
echo -----------------------------------------------------------------
echo.
echo.
echo --------------------- WARNING!: ---------------------------------
echo.
echo Run this file from your portable USB device ONLY.
echo Running this file from your hard drive may overwrite your current
echo Master Boot Record (MBR) and render your Windows Operating System
echo un-bootable. YOU HAVE BEEN WARNED!
echo.
echo This batch file is offered in hopes that it will be useful and
echo comes with absolutely no warranty. USE AT YOUR OWN RISK!
echo.
echo -----------------------------------------------------------------
echo.
echo.
echo Press any key to make drive %~d0 bootable
echo or close this window to abort...
pause > nul
cls
syslinux\win32\syslinux.exe -ma %~d0
echo.
echo ~~~~~~~~ Congratulations ~~~~~~~
echo.
echo The hidden file ldlinux.sys has been installed
echo Your %~d0 drive should now be bootable.
echo.
echo.
echo Press any key to exit this window!
pause > nul



