Wrong Passing of File Paths
Posted: 07 Jan 2015 12:24
I have multiple archive files throughout my hard drive. To simply testing of each archive using WinRAR, I attempted to do a search for all archives and then select them all > Use WinRAR context menu to test the archives. It failed. I then attempted another method using PaperFolders and same issue. It's a bit easier to explain using the PaperFolder method. Create 3 folders:
ARCHIVE 1, ARCHIVE 2, ARCHIVE 3. In ARCHIVE 1, create file ARCHIVE1.rar. In ARCHIVE 2, create ARCHIVE2.rar. Same thing for folder ARCHIVE 3.
Now create a PaperFolder. Drag the archive from each of the folders into the new PaperFolder. You should now have 3 items with paths something like:
I then replaced WinRAR executable in the program directory with another program that displays the parameters that are passed to it. I then selected all items in the PaperFolder and use WinRAR context menu to test the archives. This is the result:
As you can see, thee file paths for ARCHIVE2 and ARCHIVE3 are wrong. They both use the folder ARCHIVE 1 (which also happened because ARCHIVE1.rar from folder ARCHIVE 1 was the first file I dragged into the PaperFolder). It should actually be something like:
The same results happened with Search results. Drag the 3 folders into a new folder named SEARCH and then do a search for all archived files. Repeat the process above.
ARCHIVE 1, ARCHIVE 2, ARCHIVE 3. In ARCHIVE 1, create file ARCHIVE1.rar. In ARCHIVE 2, create ARCHIVE2.rar. Same thing for folder ARCHIVE 3.
Now create a PaperFolder. Drag the archive from each of the folders into the new PaperFolder. You should now have 3 items with paths something like:
Code: Select all
E:\ARCHIVE 1\ARCHIVE 1.rar
E:\ARCHIVE 2\ARCHIVE 2.rar
E:\ARCHIVE 3\ARCHIVE 3.rarCode: Select all
"C:\Program Files\WinRAR\WinRAR.exe" t -iext "-an=E:\Desktop\ARCHIVE 1\ARCHIVE1.rar" "-an=E:\Desktop\ARCHIVE 1\ARCHIVE2.rar" -- "E:\Desktop\ARCHIVE 1\ARCHIVE3.rar"Code: Select all
"C:\Program Files\WinRAR\WinRAR.exe" t -iext "-an=E:\Desktop\ARCHIVE 1\ARCHIVE1.rar" "-an=E:\Desktop\ARCHIVE 2\ARCHIVE2.rar" -- "E:\Desktop\ARCHIVE 3\ARCHIVE3.rar"