RAR command line - Exclude all directories

54 views Asked by At

I have the following structure :

FOLDER :

  • file1
  • file2
  • file3
  • subfolder1
    • file1.1
    • file1.2
  • subfolder2
    • file2.1
    • file2.2

I would like to create an archive with the files in the root only (excluding all subfolder nevermind their name)

I tried : rar a archive.rar FOLDER and rar a -r- archive.rar FOLDER

Both case, the archive is empty

1

There are 1 answers

2
Justinas On BEST ANSWER

By documentation it should be rar a -r archive.rar D:\path\to\FOLDER\*