Yutaka-Sawada / MultiPar

Parchive tool
963 stars 42 forks source link

if i create par files within folder and now move the folder to a different path, it says invalid path if the path is too long #136

Open RohithKumarSp opened 1 week ago

RohithKumarSp commented 1 week ago

How do i fix this? i want to create par files for each folder and place par files inside it, first problem is that i cant place it in a different folder, nor cant i move the entire folder, nor is there an option to select the folder separately and par files to verify separately to bypass all this

Yutaka-Sawada commented 1 week ago

Your usage would be like this;

In FolderA, create PARfileA for File1 & File2 & File3.
In FolderB, create PARfileB for File4 & File5 & File6.
In FolderC, create PARfileC for File7 & File8.

At first, MultiPar cannot make multiple PAR sets at once. When you want to make 3 separete PAR sets for 3 folders, you need to make each PAR set 3 times independently. This is same at verification time, too.

Now, you may use Batch script or Python Script for your series of tasks. Refer MultiPar's Help documents. There are subjects of "Batch script" and "Python Script".

For example, there is "Create individual PAR2 set in each selected folder (with GUI)" item on "Batch script" page.

@ECHO OFF
SETLOCAL

SET multipar_path="path of MultiPar.exe"

:GetFilePath
REM check input path
IF "%~1"=="" GOTO End
IF NOT EXIST "%~1" GOTO NextFile

REM open MultiPar GUI
ECHO create for %1
%multipar_path% /create %1

:NextFile
SHIFT
GOTO GetFilePath

:End
ENDLOCAL

Save this script on a file like "MakePARs.bat", and put it on somewhere like Desktop. In the batch file, edit path of "MultiPar.exe" on your PC. Drag & Drop multiple folders on the batch file. MultiPar will open for every folders one by one. After you finish creation of a PAR set and close MultiPar, MultiPar will open again to create next PAR set.

RohithKumarSp commented 1 week ago

Your usage would be like this;

In FolderA, create PARfileA for File1 & File2 & File3.
In FolderB, create PARfileB for File4 & File5 & File6.
In FolderC, create PARfileC for File7 & File8.

At first, MultiPar cannot make multiple PAR sets at once. When you want to make 3 separete PAR sets for 3 folders, you need to make each PAR set 3 times independently. This is same at verification time, too.

Now, you may use Batch script or Python Script for your series of tasks. Refer MultiPar's Help documents. There are subjects of "Batch script" and "Python Script".

For example, there is "Create individual PAR2 set in each selected folder (with GUI)" item on "Batch script" page.

@ECHO OFF
SETLOCAL

SET multipar_path="path of MultiPar.exe"

:GetFilePath
REM check input path
IF "%~1"=="" GOTO End
IF NOT EXIST "%~1" GOTO NextFile

REM open MultiPar GUI
ECHO create for %1
%multipar_path% /create %1

:NextFile
SHIFT
GOTO GetFilePath

:End
ENDLOCAL

Save this script on a file like "MakePARs.bat", and put it on somewhere like Desktop. In the batch file, edit path of "MultiPar.exe" on your PC. Drag & Drop multiple folders on the batch file. MultiPar will open for every folders one by one. After you finish creation of a PAR set and close MultiPar, MultiPar will open again to create next PAR set.

My use case is this, I'm writing huge video files of TV shows which have many episodes in size the folder.

Imagine I have TV show (2024)/inside I have 6 folders of 6 seasons/each season has 12 episodes

My issue is I can drag and drop my field to muti par and craft par field ianse the main sub folder or create inside each season, but my issue is if I move the par files to a seperate folder, no option to open the muti par and drag and drop the folder and select the par files to verify, there simply is no option, I have to manually double click on par 2 files to open but for that I have to have them inside the respective folder.

Also now I can't rename the filers inside the sub bolder else the par files won't even detect.

Yutaka-Sawada commented 1 week ago

Your directories may be like below;

(2024) / season1 / episode1 & episode2 ... episode12
(2024) / season2 / episode1 & episode2 ... episode12
(2024) / season3 / episode1 & episode2 ... episode12
(2024) / season4 / episode1 & episode2 ... episode12
(2024) / season5 / episode1 & episode2 ... episode12
(2024) / season6 / episode1 & episode2 ... episode12

Then, you need to make 6 independent PAR sets in each folder (season1, season2, ... season6).

(2024) / season1 / PAR files for episode1 & episode2 ... episode12
(2024) / season2 / PAR files for episode1 & episode2 ... episode12
(2024) / season3 / PAR files for episode1 & episode2 ... episode12
(2024) / season4 / PAR files for episode1 & episode2 ... episode12
(2024) / season5 / PAR files for episode1 & episode2 ... episode12
(2024) / season6 / PAR files for episode1 & episode2 ... episode12

You may move those PAR sets in another folder. At verification time, you can change "Base directory" by "Browse" button, which exists right top on Verify window.

If you are lazy to click "Browse" everytime to select folder, it's possible to save list of "Base directory". You may refer Command_GUI.txt in help folder of MultiPar. Append below lines on MultiPar.ini.

[Path]
MRUMax=26
Yutaka-Sawada commented 1 week ago

Also now I can't rename the filers inside the sub bolder else the par files won't even detect.

When you renamed source files, you need to edit PAR2 files to change internal names. Of else, such renamed files are detected as misnamed one. I made a tool for the renaming usage in Python language. You refer "Rename included source files in PAR2 sets with GUI" item in "Python script" page of MultiPar's help documents.

RohithKumarSp commented 1 week ago

Your directories may be like below;


You may move those PAR sets in another folder. At verification time, you can change "Base directory" by "Browse" button, which exists right top on Verify window.

If you are lazy to click "Browse" everytime to select folder, it's possible to save list of "Base directory". You may refer `Command_GUI.txt` in `help` folder of MultiPar. Append below lines on `MultiPar.ini`.

[Path] MRUMax=26

i did this, but it only works if i open the par files and select the base directory first and then if i open it the next time, it seems to detect as its adding the location to MultiPar.ini

i referred to the command GUI file, as you said i need to create a file list, but is it possible to create a file list that just reads one folder backwards from the folder i opened the par file ? meaning a relative file list for to to verify as i am indeed lazy?

if copy the par files outside themselves it detects file missing / moved and gives me option to rename, all it does it move the original file outside the folder where the par file are, which isn't helpful

i need the multipar to read the relative base directory one step backwards, meaning

:F/FolderABC/File1.mkv FIle2.mkv.../Par2/(The par files) is it possible for the par files to check relative /FolderABC or is there no way to go relative backwards ?

Yutaka-Sawada commented 1 week ago

i need the multipar to read the relative base directory one step backwards, is it possible for the par files to check relative /FolderABC or is there no way to go relative backwards ?

Refer Command_GUI.txt for special uasge. You can set "Base directory" manually, when you open a PAR file. In the command-line, relative path is possible.

Because you would be lazy to type command-line everytime, using "Batch script" is easy. Save below script on a file like OpenPAR.bat. Edit path of MultiPar.exe on your PC.

@ECHO OFF
SETLOCAL

SET multipar_path="path of MultiPar.exe"

REM check input path
IF "%~1"=="" GOTO End
IF NOT EXIST "%~1" GOTO End

REM open MultiPar GUI
ECHO verify parent directory with %1
%multipar_path% /verify /base "../" %1

:End
ENDLOCAL

When you drag & drop a PAR file on the script file, it will open MultiPar with setting its parent directory to "Base directory". You may put the script file in SendTo right-click menu as well.