Имя: Пароль:
1C
 
WinRar из командной строки
0 Budulay2018
 
30.12.16
21:57
Туплю жутко. Надо заархивировать файл. Пишу в командной строке С:\progra~1\Winrar\rar a c:\1\1.rar c:\1\1.txt
В итоге в архиве вся папка "1", а не просто файл. Подскажите что написать, чтобы в архив не кидалась папка целиком
1 Garykom
 
гуру
30.12.16
22:21
/?
2 Budulay2018
 
30.12.16
22:45
(1) Не понятно написал?
3 Доминошник
 
30.12.16
23:20
(0) С:\progra~1\Winrar\rar a -ep c:\1\1.rar c:\1\1.txt
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 ..
5 Budulay2018
 
30.12.16
23:52
(4) О, спасибо