Consulting

Results 1 to 2 of 2

Thread: How to RAR a folder via VBA?

  1. #1
    VBAX Tutor Erdin? E. Ka's Avatar
    Joined
    Sep 2006
    Location
    Bursa
    Posts
    264
    Location

    How to RAR a folder via VBA?

    Hi everyone,

    I want to get a WinRAR of a specific folder via VBA.

    Sample Path Name is:
    "C:\SampleFolder"

    I want to get some kind of backup my files into SampleFolder:
    "SampleFolder_2007_05_21_14_54_15.rar"
    ( I want to save it in the "C:\MyBackups" folder. )

    Descriptions:
    SampleFolder = Folder Name
    2007 = Year value of Windows's Current Calendar
    05 = Month value of Windows's Current Calendar
    21 = Day value of Windows's Current Calendar
    14 = Hour value of Windows's Current Calendar
    54 = Minute value of Windows's Current Calendar
    15 = Second value of Windows's Current Calendar

    Thank you very muh.
    Erdin? E. Kara?am | Loves from Bursa city in Republic of T?rkiye

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    If you can do WinZip, Ron has some code at http://www.rondebruin.nl/windowsxpzip.htm

Posting Permissions

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