Results 1 to 3 of 3

Thread: สคริ๊ปลบไฟล์ขยะในTempหลังจากเกิน7วัน

  1. #1
    Senior Member
    Join Date
    Mar 2008
    Posts
    272


    สคริปลบไฟล์ขยะในTempหลังจากเกิน7วัน

    เป็นการเขียนสคริปโดยใช้ VBScript น่ะครับ
    [hide=2]
    เช่นผมจะทำการลบไฟล์ที่ C:\TEMP\น่ะครับ

    Saveเป็นไฟล์นามสกุล.vbs
    [code]
    Option Explicit
    Dim objFSO, objFldr, objFile
    Dim strFolder, strAge, strDateDiff
    strFolder = "c:\TEMP\" 'เส้นทางที่จะลบ
    strAge = 7

  2. #2
    Junior Member
    Join Date
    Oct 2007
    Location
    Thailand
    Posts
    7


    คือว่าถ้าเขียนเสร็จแล้วให้เซฟเป็น .vb แล้วอยากรุ้ว่าจะทำยังไงให้มันทำงานแล้วเซฟไฟล์นี้ไว้ที่ตำแหน่งไหนคับ ไม่รุ้จริงๆ
    ความสุขที่มีคุณค่าสูงสุด ไม่ได้มาจากทางกาย แต่ได้มาจากทางใจ

  3. #3
    Junior Member
    Join Date
    Jul 2008
    Posts
    27


    รบกวน อธิบายคำสั่งแต่ละบรรทัดได้มั้ยครับ ^^

    อยากทราบว่าแต่ละบบรทัดทำอะไรได้ัมั่ง

    เผื่อจะเอาไปดัดแปลงใช้ครับ ^^

Members who have read this thread : 0

Actions : (View-Readers)

There are no names to display.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •