Author Topic: Looking for Correct syntax for Winrar auto extract.  (Read 2548 times)

RavenousSix

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Looking for Correct syntax for Winrar auto extract.
« on: March 16, 2015, 02:37:32 am »
Would this be it?

"C:/Program Files/WinRAR/unrar.exe" e -r "%f"/"%n"/*.rar "%f"/"%n"/

I'm not sure if %f returns the path where the torrent is, or the full path including the torrent name so I included %n after %f.

If I just do this:

"C:/Program Files/WinRAR/unrar.exe" e -r "%f"/*.rar "%f"/

It extracts every single folder in the path with all the torrents in it and I don't want that.

Btw I'm running 3.2.0 Alpha and the above arguments do trigger Winrar to start working and unraring so I have no issues with it starting and working, I just need the right argument.

RavenousSix

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Looking for Correct syntax for Winrar auto extract.
« Reply #1 on: December 08, 2015, 10:05:06 pm »
This used to work in 3.2.5 as of 3.3.1 it doesn't do anything at all:

"C:/Program Files/WinRAR/WinRAR.exe" x -ibck -inul "%F/%N/*.r*" "%F/%N/"

Does anyone know what is going on? Is it bugged out? Any help at all?

ciaobaby

  • Forum addict
  • ****
  • Posts: 2771
  • Karma: +98/-25
  • No quarter asked... No quarter given.
    • View Profile
    • WMTeu
Re: Looking for Correct syntax for Winrar auto extract.
« Reply #2 on: December 09, 2015, 05:14:58 pm »
The %N parameter returns the torrent name (the task list caption in the name column), which may, or may not be a valid path reference.

%R should be the first sub-directory name in the 3.3 series.
Smarter than the av-er-age bear, Boo Boo.

http://qbforums.shiki.hu/index.php/topic,3084.0.html

RavenousSix

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
Re: Looking for Correct syntax for Winrar auto extract.
« Reply #3 on: December 10, 2015, 12:44:03 am »
The %N parameter returns the torrent name (the task list caption in the name column), which may, or may not be a valid path reference.

%R should be the first sub-directory name in the 3.3 series.

This works now, I corrected it and tested it. In versions 3.3+ this is the proper WinRAR Autoextract script, granted the user uses the same WinRAR installation path:

"C:/Program Files/WinRAR/WinRAR.exe" x -ibck -inul "%F/*.r*" "%F/"