Author Topic: Autounrar: Replace . with space, remove defined strings  (Read 2120 times)

Offline theone99

  • Contributor
  • ***
  • Posts: 9
Autounrar: Replace . with space, remove defined strings
« on: September 17, 2009, 03:06:27 pm »
I'd really like my unrarred output to be cleaner, so I've got a couple of requests

1. In addition to replacing underscores with spaces, also replace dots with spaces, and never allow more than one space in a row.
2. Allow me to define strings such as 'xvid.' to remove from the file name

Offline Ascathon

  • Contributor
  • ***
  • Posts: 608
    • vandenekker.com
Re: Autounrar: Replace . with space, remove defined strings
« Reply #1 on: September 17, 2009, 03:11:10 pm »
I'd really like my unrarred output to be cleaner, so I've got a couple of requests

1. In addition to replacing underscores with spaces, also replace dots with spaces, and never allow more than one space in a row.
2. Allow me to define strings such as 'xvid.' to remove from the file name
If you say you would like to define strings...then why not ask for replace function. "Replace value x with y". Then you can replace dots with spaces, replace "xvid" with empty strings..etc

("Kill two birds with one stone")
« Last Edit: September 17, 2009, 03:12:54 pm by Ascathon »
Save the Whales - Harpoon a Honda

Offline Hecks

  • Contributor
  • ***
  • Posts: 2011
  • naughty cop
Re: Autounrar: Replace . with space, remove defined strings
« Reply #2 on: September 17, 2009, 08:00:43 pm »
This is the kind of thing that's trivial to do with the Execute Command on Completion function, and that's exactly why it's there, since the proggy can't cater for every possible user's preferences:

https://www.altbinz.net/wiki/Execute_Command_on_Completion

Sample Powershell script:

Code: [Select]
foreach ($file in get-childitem "D:\files\*" ) {
  $newFilename = $file.Name -replace "_"," "
  rename-item $file -newname ($newFilename)
}

Or something like that.