อยากทราบวีธีทำให้ dosbatfile รันauto เมื่อเปิดเครื่อง

@ECHO OFF
IF NOT %temp% == %tmp% GOTO both_
GOTO single
:both
DEL %temp%*.* /F /S /Q
DEL %tmp%*.* /F /S /Q
CLS
ECHO Deleted all files in the TEMP folder: %temp%
ECHO Deleted all files in the TMP folder: %tmp%
GOTO end
:single
DEL %temp%*.* /F /S /Q
CLS
ECHO Deleted all files in the TEMP folder: %temp%
:end

---------------
อยากให้ ลบtemp ไฟล์ทุกครั้งที่เปิดเครื่อง พอดีHdd ผมเสีย เลยจำไม่ได้ว่าทำยังไง ช่วยกัลหาหน่อยนะคับ
🏷️ หัวข้อที่เกี่ยวข้อง

💬 การตอบกลับ 1

#1
Moshi
Moshi
16,996 โพสต์
ขออภัยที่มาตอบล่าช้าะนะครับ ไปวัดมา 3 วันครับผม

http://www.it4x.com/forum/index.php?topic=2914.0

ตามลิงค์เลยนะครับ