0
Budulay2018
30.12.16
✎
21:57
|
Туплю жутко. Надо заархивировать файл. Пишу в командной строке С:\progra~1\Winrar\rar a c:\1\1.rar c:\1\1.txt
В итоге в архиве вся папка "1", а не просто файл. Подскажите что написать, чтобы в архив не кидалась папка целиком
|
|
4
Доминошник
30.12.16
✎
23:22
|
Точнее - так
-ep Exclude paths from names. This switch enables files to be added
to an archive without including the path information. This
could, of course, result in multiple files existing in the
archive with the same name.
-ep1 Exclude base dir from names. Do not store the path entered
in the command line.
Example:
all files and directories from the directory tmp will be added
to the archive 'test', but the path in archived names will not
include 'tmp\'
rar a -ep1 -r test tmp\*
This is equivalent to the commands:
cd tmp
rar a -r ..\test
cd ..
|
|