killoleo.blogg.se

Program to zip files with unicode characers
Program to zip files with unicode characers










:))īy the way, if you do use WinRAR.exe you might want to get the recent WinRAR 4 (beta 2 currently) as it includes the ability to specify the working directory, previously only possible with rar.exe. I'm not a big fan of VBScript and JScript but at least they don't have completely insane, arcane semantics and limitations like batch does. Whether a batch script itself can cope with unicode I do not know, but if that is the only problem remaining I would switch to using VBScript or JScript instead of a batch file. You will see a GUI progress window but other than that (which may or may not matter to you) WinRAR.exe is suitable for running from batch scripts. If you use WinRAR.exe instead of RAR.exe then you can pass unicode filenames on the command-line and they work fine.

#Program to zip files with unicode characers archive

For the archive name itself I don't know of a solution except. However, that only works for files inside the archive (EDIT: or files you want to add to the archive). The only way I know of to pass a unicode name to it is via a list file, when also using the argument to specify that the list file is unicode.

program to zip files with unicode characers

RAR.exe processes its command-line in the OEM character set (i.e. For example a file: téxt.pdf will become text.pdf when parsed.Ī small side question: I've not tried using 7zip, would it be easier to achieve the same thing with 7zip? I think the problem happens when the file name is parsed to WinRAR as WinRAR has no problem archiving files with Unicode names.Įdit: When parsing the file name to WinRAR, the file name gets modified so when WinRAR tries to look for the file under that name, it can't find it. Set path="C:\Program Files\WinRAR\" %path% Below is the working small code: - BEGIN rarthem.bat offĮcho.

program to zip files with unicode characers

It works fine except for that the file names should be in ASCII. I wrote a small batch file to rar all contents in all subfolders within a folder.










Program to zip files with unicode characers