@echo off&set FileName=%~n0&shift :: ============================================= :: AutoHelp PlugLab Concept: 2006 by Reatogo :: ============================================= :: Help Info: :: ======================= set Routine_Type=4 :: 1=Getting Data 2=Prompts 3=Getting Files 4=Creating Files 5=General set Routine_Vers=1 set Routine_Date=2007-02-15 set RoutineName=CreateReset set RoutineAuthor=Siegfried set Using_work_from= set Example_call_1=%%CreateReset%% set Example_call_2= set Example_call_3= set text_01=Creates a RESET.cmd set text_02=to reset the plugin for testing. set text_03=. set text_04=NOTE: Only creates a new RESET.cmd if not exist. Does not refresh, to avoid that custom changes by the author do not get overwritten. set text_05=To edit the RESET.cmd may be indicated for some plugins. E.g. a plugin with all files included should not have the folder Files removed on reset etc. if "%~1" == "GetHelp" goto :EOF echo.&echo %* :: ============================================= if exist RESET.cmd goto :EOF set FILE=RESET.cmd ECHO @echo off> %FILE% ECHO if exist "%INF_NAME%" del "%INF_NAME%">> %FILE% ECHO if exist SCRIPTS\PLUG_DETAILS\AUTOHELP.txt del SCRIPTS\PLUG_DETAILS\AUTOHELP.txt>> %FILE% if not "%Program_Requirements%" == "All needed files are included." ECHO if exist Files rd Files /s /q>> %FILE% ECHO if exist PROFILES rd PROFILES /s /q>> %FILE% ECHO if exist EXTRA rd EXTRA /s /q>> %FILE% ECHO if exist start.inf.txt ren start.inf.txt start.inf>> %FILE% set FILE= goto :EOF :: =============================================