Mac-like Clear Menu .bat File

:angry::angry::angry:

Could someone tell me how to write a .bat file, which erases the context / .lnk files/ in a certain directory?

The directory is --My recent documents--

And the reason:

Look the pic from my leopard theme, THE CLEAR MENU IS THE TARGET!!

So please tell me the /HOW TO/.

THX

:own: :own: :own: :who's your daddy:

screenshot-3222.jpg

#26822

here ya go

@echo off

if '%min%'=='1' goto clear
set min=1
start /min clear.bat
goto end

:clear
set min=
%systemdrive%
cd %userprofile%\recent
del /Q *.*

:end
exit

must be called clear.bat, else change line 5

hope it helps

-The Unknown

#26870

Nice little *.bat file. :)

Does it work for you maximus-gratus?

#26918

THX MAN! It works great!

Release soon!

#26933

glad 2 hear it worked, and am eagerly awaiting the release :lol:

#26934

thank you Maximus! looking forward to see your objectbar theme - :boob_shake:

#26936