@ECHO OFF SETLOCAL :: Parameter check IF "%1"=="" GOTO Syntax IF /I NOT "%1"=="/C" IF /I NOT "%1"=="/D" GOTO Syntax IF /I "%1"=="/D" (SET D=RD) ELSE (SET D=MD) :: Where should the shortcut be placed? IF EXIST %UserProfile%\Desktop ( SET Desktop=Desktop ) ELSE ( IF EXIST %UserProfile%\Bureaublad SET Desktop=Bureaublad ) :: Quit if any doubt IF "%Desktop%"=="" GOTO:EOF :: Create/delete the shortcut %D% "%UserProfile%\%Desktop%\Internet History.{FF393560-C2A7-11CF-BFF4-444553540000}" :: Done GOTO End :Syntax ECHO. ECHO History.bat, Version 1.00 for Windows with IE 4 or 5 ECHO Creates or deletes a shortcut "Internet History" on your desktop ECHO. ECHO Tip by Nick Francesco at Rochester RoadRunner ECHO http://www.rochester.rr.com/articles/nick_tips/ ECHO. ECHO Batch file created by Rob van der Woude ECHO http://www.robvanderwoude.com ECHO. ECHO Usage: ECHO. ECHO %~n0 /C to create the shortcut ECHO %~n0 /D to delete the shortcut :End ENDLOCAL