어서 노를 저어라!

2009/08/22

Batch File – 윈도우 임시폴더 내용 삭제하기

Filed under: Tips — Tags: , , , , , , — latellian @ 14:24

REM %temp%로정의된 임시 폴더의 파일,폴더 삭제
del /f /s /q “%temp%\Temporary Internet Files\*.*” | find /C “D:”
del /f /s /q “%temp%\임시 인터넷 파일\*.*” | find /C “D:”
del /f /s /q “%temp%\*.*” | find /C “D:”

rd /s /q “%temp%” | find /C “D:”
REM 쿠키 삭제
del /f /s /q “%homedrive%%homepath%\Cookies\*.*”

REM 로컬로의 핑 5회 대략 5초 정지(?)
ping 127.0.0.1 -n 5 > nul
echo on

REM pause

+
%homedrive%가 Windows7에서 인식되지 않는다.
%systemdrive%가 더맞게 쓰인것이다.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: