Skip to content

pkgrename v1.07a

Compare
Choose a tag to compare
@hippie68 hippie68 released this 28 Jul 19:43
· 26 commits to main since this release
6bc5bb3

Changelog v1.07a:

  • Fixed a bug that could cause the program to freeze.
  • Fixed option --print-tags not being recognized.
  • Better command line argument handling (by employing https://github.com/hippie68/getopt).
  • The program no longer hangs when the Windows UTF-8 beta feature is not enabled and a file system entry that contains UTF-8 multibyte characters is encountered. Such files however can't be renamed unless the UTF-8 beta feature is enabled.
  • The program does not exit anymore when a resulting file name would be too large for exFAT partitions (but it still prints a warning message).
  • New option: --query: scripts and tools can call pkgrename with multiple file names as command line arguments to receive a list of name suggestions.
  • Small bug fixes, stability and performance improvements.

Changelog v1.07:

  • Implemented multi-threading to further improve performance: PKGs are now scanned in the background during user input.
  • Scanning is no longer aborted when one of the files can't be read.
  • Fixed command [L] not printing changelog data if neither %merged_ver% nor %true_ver% is used.
  • Changelog data is now used to update empty %release% pattern variables. Rescanning existing PKG collections may reveal new release tags and is advised.
  • Command [L] now prints a list of known release tags found in the changelog data. Useful if there are multiple tags to choose from.
  • New hotkey: pressing the backspace key goes back to the previous PKG(s).
  • New hotkey: pressing the space key returns to the current PKG.
  • Linux: new option: --disable-colors: disable colored text output (useful for terminals that don't support colors).
  • Windows: fixed a bug that caused the program to report errors after scanning 512 files.
  • Other small fixed and improvements.

This is a Windows release of the command line utility "pkgrename", which can help to organize PS4 PKG collections.

Type "pkgrename --version" to see your current release.

At least Windows 10 build 17063 is required to use the online search feature out-of-the-box.
Alternatively, install cURL for Windows: https://curl.se/download.html.

On Windows 10/11, it is strongly recommended to activate the UTF-8 beta feature: Settings - Time & Language - Language - Administrative language settings - Change system locale... - Beta: Use Unicode UTF-8 for worldwide language support.
For Windows 10 users it is recommended to use the new Windows Terminal application (which is now the default terminal in Windows 11) instead of the standard cmd.exe command prompt.
When using both the UTF-8 beta feature and Windows Terminal, pkgrename should work as intended.

If the UTF-8 beta feature is not used, file names that contain multibyte characters may cause this error:

Could not read file system information: "weird_characters_????.pkg".

Such a PKG file can't be renamed then and will be skipped.

Please report bugs and unexpected behavior at https://github.com/hippie68/pkgrename/issues.

How to run pkgrename.exe from anywhere with modified arguments:

Put pkgrename.exe in a folder (you can also put other command line programs there). Inside that folder, create a new batch file named "pkgrename.bat" and open it with Notepad. Write the following lines, while replacing ARGUMENTS with your preferred arguments:

@echo off
pkgrename.exe ARGUMENTS %*

For example:

@echo off
pkgrename.exe --pattern "%%title%% [%%title_id%%]" --tagfile "C:\Users\Luigi\pkgrename_tags.txt" %*

As seen above, if the batch file contains pattern variables, their percent signs need to be escaped by doubling them. For example, %title% must be changed to %%title%%.

Now click Start, type "env" and select "Edit environment variables for your account". Select "Path" and click edit. Select "New" and enter the folder where you put pkgrename.bat into. Close and reopen any opened command line windows for the changes to apply.


Downloads:
pkgrename.exe for 64-bit Windows
pkgrename_32.exe for 32-bit Windows