Win95/98 autorun.bat File [by Hellfire]
Snippet Posted Saturday, July 3rd @ 11:39:05 PM, by George Greer in the Utils dept.
Hellfire wrote in with a replacement for 'autorun' under Windows 95/98.
Using the majority of Frollo's autorun and the simple copy command,  I
made this  autorun text script. Copy it to notepad then save it with an
extension .bat to your circle dir. CHDIR and type autorun and away you
go!  It will create any syslog files that are not already there--one
syslog per reboot. Don't forget to change the directory name in the copy
commands if your game is in a different directory.

Hellfire
bonecrusher@cyberdude.com

@echo off
:START
cls
cd C:\circle
DEL  c:\circle\log\syslog1
COPY  C:\circle\log\syslog2  log\syslog1
DEL  C:\circle\log\syslog2
COPY  C:\circle\log\syslog3  log\syslog2
DEL  C:\circle\log\syslog3
COPY  C:\circle\log\syslog4  log\syslog3
DEL  C:\circle\log\syslog4
COPY  C:\circle\log\syslog5  log\syslog4
DEL  C:\circle\log\syslog5
COPY  C:\circle\log\syslog6  log\syslog5
DEL  C:\circle\log\syslog6
COPY C:\circle\log\syslog7 log\syslog6
DEL C:\circle\log\syslog7
COPY C:\circle\log\syslog8 log\syslog7
DEL C:\circle\log\syslog8
COPY C:\circle\log\syslog9 log\syslog8
DEL C:\circle\log\syslog9
COPY  C:\circle\log\syslog   log\syslog9
src\circle
if exist pause goto PAUSE
if exist fastbo~1 goto FASTBOOT
if exist killsc~1 goto KILLSCRIPT
echo [Rebooting in 60 seconds]
choice /n /cb± /t±,60>nul
goto START
:FASTBOOT
erase fastbo~1
echo [Rebooting in 5 seconds]
choice /n /cb± /t±,5>nul
goto START
:KILLSCRIPT
erase killsc~1
echo <-------------------------------------->
echo * *GAME HAS BEEN SNUFFED **
echo <-------------------------------------->
goto END
:PAUSE
erase pause
echo <------------------------------->
echo * *TAKING A BREATHER **
echo <------------------------------->
echo [Press enter to reboot]
pause > nul
goto START
:END

<< FTP Uploads 1999/06/29 | Reply | View as text | Threaded | d->showstr_page Pager [by Xenobias] >>

 


Related Links
  Hellfire
Related Articles
More by greerga
 
 

CircleMUD Snippets
 
Note: Not all of these snippets will work perfectly with your version of code, so be prepared to fix one or two bugs that may arise, and please let me know what you needed to do to fix it. Sending a corrected version is always welcome.
Finally, if you wish to use any of the snippets from this page, you are more than welcome, just mention the authors in your credits. If you wish to release any of these snippets to the public on another site, contact me FIRST.