Can't compress files in same directory

English support forum

Moderators: Hacker, petermad, Stefan2, white

Ruriko
Junior Member
Junior Member
Posts: 19
Joined: 2012-08-26, 12:50 UTC

Can't compress files in same directory

Post by *Ruriko »

I'm trying to rar a bunch of folders and put the rared files in the same directory but it can't seem to rar if the folder name contains -
winrar would just say:

Code: Select all

    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open to
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open Batsu
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open to
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open Aganai
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open no
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open Shoujo-\00
!   The system cannot find the path specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open #
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open vol.1
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open ch.1
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open Red
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open Night.rar
!   The system cannot find the file specified.
The original folder name is c:\Users\Administrator\Downloads\MangaPark\11eyes -Tsumi to Batsu to Aganai no Shoujo-\03 # vol.1 ch.4 Determination
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Ruriko,
How are you trying to RAR them? What do you click, what buttons do you press?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Ruriko
Junior Member
Junior Member
Posts: 19
Joined: 2012-08-26, 12:50 UTC

Post by *Ruriko »

Hacker wrote:Ruriko,
How are you trying to RAR them? What do you click, what buttons do you press?

Roman
I have assigned a hot key to CTRL+ALT+F5 with cm_PackFiles
I highlighted all the folders that I want to compress
I press CTRL+ALT+F5
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Ruriko,
What do you have for RAR under Configuration - Options - Packer?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Ruriko
Junior Member
Junior Member
Posts: 19
Joined: 2012-08-26, 12:50 UTC

Post by *Ruriko »

Hacker wrote:Ruriko,
What do you have for RAR under Configuration - Options - Packer?

Roman
This is what I have
Image: http://i.imgur.com/mqM6l3d.gif
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Ruriko,
Hm, OK, last thing - can you post a screenshot of the pack dialog when you press Ctrl-Alt-F5? It seems WinRAR does not receive a correctly quoted archive name or so.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Ruriko
Junior Member
Junior Member
Posts: 19
Joined: 2012-08-26, 12:50 UTC

Post by *Ruriko »

Hacker wrote:Ruriko,
Hm, OK, last thing - can you post a screenshot of the pack dialog when you press Ctrl-Alt-F5? It seems WinRAR does not receive a correctly quoted archive name or so.

Roman
Ok here's the screenshot Image: http://i.imgur.com/X466reS.gif
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Ruriko,
Can you try and change the text to:

Code: Select all

rar:"*.*.rar"
?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Ruriko
Junior Member
Junior Member
Posts: 19
Joined: 2012-08-26, 12:50 UTC

Post by *Ruriko »

Hacker wrote:Ruriko,
Can you try and change the text to:

Code: Select all

rar:"*.*.rar"
?

Roman
doesn't work it still gives same error

Code: Select all

    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open to
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open Batsu
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open to
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open Aganai
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open no
!   The system cannot find the file specified.
    c:\Users\Administrator\Downloads\MangaPark\11eyes.rar: Cannot open Shoujo-\00 # vol.1 ch.1  Red Night.rar
!   The system cannot find the path specified.
it seems to chop off the path right before -

Code: Select all

c:\Users\Administrator\Downloads\MangaPark\11eyes -Tsumi to Batsu to Aganai no Shoujo-\00 # vol.1 ch.1  Red Night
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50923
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The problem is that you have a space followed by a dash. RAR sees that as a switch.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Christian,
Yes, well, that is obvious, the question is, how to stop this from happening?
Is TC quoting the archive name it passes to WinRAR?
Does / can TC use -- as the last switch to let WinRAR know no more switches will follow?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

TC doesn't pass "--". I don't see any downside to passing it always.
Switch -- - stop switches scanning
This switch tells to WinRAR that there are no more switches in the command line. It could be useful, if either archive or file name starts from '-' character. Without '--' switch such a name would be treated as a switch.

Example
add all files from the current folder to the solid archive -StrangeName

WinRAR a -s -- -StrangeName
But I can't replicate the problem with TC 8.51 x86 and WinRar 5.10...
Ruriko
Junior Member
Junior Member
Posts: 19
Joined: 2012-08-26, 12:50 UTC

Post by *Ruriko »

So I tried changing the compression file type to zip and it gives a error: Cannot find external pack program! You need to install and configure an external packer to handle this specific archive.

Now that error doesn't popup if I tried on normal folder names.

Ok so maybe if I define the full path it might work so where would the zip packer be located since windows has it built-in zip function?
User avatar
Hacker
Moderator
Moderator
Posts: 13144
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Ruriko,
There unfortunately is no standalone zip packer in windows.
This should be easy to solve using a simple AHK wrapper as a workaround, but since I cannot reproduce the bug I cannot test. The idea is to add quotes around each parameter and pass -- before the archive name.

Code: Select all

#NoTrayIcon
#NoEnv

PathToWinRAR = C:\Program Files\WinRAR\WinRAR.exe

RunWait, %PathToWinRAR% "%1%" "%2%" "--" "%3%" "%4%"
Basically, you need to download and install AutoHotkey, save the above code as WinRARWorkaround.ahk and configure WinRARWorkaround.ahk as your RAR packer in TC.
Of course you need to adjust the path to WinRAR in the script.

P.S.: I have noticed TC passes -c- to WinRAR on the command line but I did not find it documented anywhere. Does anybody know what it should do?

Thanks
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Dalai
Power Member
Power Member
Posts: 10035
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Hacker wrote:P.S.: I have noticed TC passes -c- to WinRAR on the command line but I did not find it documented anywhere. Does anybody know what it should do?
There is a -c- switch in rar.exe to "Disable comments show", but I don't know what it means...

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply