Hi,
i recently moved di DirOpus and i'm trying to make the first customization for my need.
Often i have to join many splitted file (.001 extension) and i'm trying to automatize this process at its max.
I currently setup a button that rejoin the file and delete the part after it but i look to do more. I like to build something that do it in batch mode: select all the .001 file, click and it make the job.
i'm reading the doc and some tutorial but at this time i don't find an hint about the possibility to do something like that or how to do it... Could anyone give me some advice?
I have the impression that English is not your native language so we may have a communication issue here, but I cannot understand the logic of your question. In my mind splitting/joining files should be done carefully on a file by file basis which apparently you are doing now. Please explain further what your goal is.
hi,
sorry if my english is not so good.
let me try to better explain what i want to do (if it is possible).
i have a lot of file splitted (example.avi.001, example2.exe.001, etc, etc) and i want to automate to the max the process of rejoin all this file.
in my imagination i hope to get something like that:
filter file with 001 extension, select file, click button and get all the part joined, with splitted part deleted.
at this time i miss how to parse filename to automate the select process starting from example.avi.001
Well, JohnZ actually gave me this quite some time ago:
start "" dopusrt.exe /cmd Select *%~x1
Saving this in a batch file (as long as dopusrt.exe is in a search path - else put the whole path) and running in Dopus will select all files with the same extension. I've got this command saved in a batch file called selbyext.bat.
From there, you could write a button or hotkey in Dopus that ran the following commands:
Pardon my intrusion but there is a utility especially made for splitting and rejoining files. It is Join001 and does a very good job of it. Do a search for the file in Google and you should be able to get it. It is Freeware as well.
Goody
[quote]
Goody wrote:
Pardon my intrusion but there is a utility especially made for splitting and rejoining files. It is Join001 and does a very good job of it. Do a search for the file in Google and you should be able to get it. It is Freeware as well.
Goody[/quote]
Thanks Goody, have you a link for this utility? I search for Join001 but i could not find it.
i have tried the button definition above but it seems to join file based on egual extension.
In my scenario:
example1.exe.001
example1.exe.002
example1.exe.003
example1.exe.004
the button seems to join in a single file named as example1.exe all the part (i suppose it by looking at final file dimension).
i'm looking for something like:
select example1.exe.001
push button
select all the example1.exe.0xx file
join previous selection
delete splitted file (0xx extension)
i read some of the internal command description but without example is not so easy find if there is anything i could use.
I'm searching for regular expression tutorial, maybe i could do it with it.
In my opinion it could be dangerous to have a button like this. Perhaps in some controlled situations it might be all right, but in general there is potential for files being selected which shouldn't be selected, files joined that shouldn't be joined (which would corrupt the joined file), and files deleted that shouldn't be deleted.
So instead I would use two buttons to do this. One button to simply select all the files to be joined so you can view the selections before pressing the second button which will join those files. After you have performed the join, select one of the files no longer needed, and press the first button to select the rest of them again. The last step is to hit delete to remove the no longer needed split files. This keeps the control of what is being selected, joined, and deleted, in your hands so you can stop or change your selections if necessary.
To create a button to select all files that were split from the original, first create a batch file (this requires Windows NT or newer) that consists of only the following:
dopusrt /CMD select "%~n1.*"
Then in DOpus, create a button called something like "Select Split Files" and for the button command have something like this:
"C:\My Folder\Select Split Files.bat" {f}
Where C:\My Folder\Select Split Files.bat is the batch file you made above.
The second button would be simple, just make JOIN the only command for it.
ah sorry Garf... but your earlier examples specifically gave me the impression you wanted to join all ..001 files... and it did seeme strange to me at the time, so I read your questions a few times and still thought this was what you meant...
[quote]
steje wrote:
ah sorry Garf... but your earlier examples specifically gave me the impression you wanted to join all ..001 files... and it did seeme strange to me at the time, so I read your questions a few times and still thought this was what you meant...[/quote]
i'm sorry... i think it's not a clear description what i wrote.
the next time i will do better!
To create a button to select all files that were split from the original, first create a batch file (this requires Windows NT or newer) that consists of only the following:
dopusrt /CMD select "%~n1.*"
Then in DOpus, create a button called something like "Select Split Files" and for the button command have something like this:
"C:\My Folder\Select Split Files.bat" {f}
Where C:\My Folder\Select Split Files.bat is the batch file you made above.
The second button would be simple, just make JOIN the only command for it.[/quote]
I try this solution but i could not get any selection...
how i could debug this? i try to understand the select argument but the help file is not so useful for me...
Ah, I see what happened. When you copied what I posted last time it also copied the html bold tags I used to highlight the key lines of text. Remove every instance of and from the script and try it again. So the two lines of code are like this:
dopusrt /CMD select "%~n1.*"
and
"C:\My Folder\Select Split Files.bat" {f}
If you still have trouble you might have to use the full path to dopusrt.exe which in my computer is:
[quote]
JohnZeman wrote:
Ah, I see what happened. When you copied what I posted last time it also copied the html bold tags I used to highlight the key lines of text. Remove every instance of and from the script and try it again. So the two lines of code are like this:
dopusrt /CMD select "%~n1.*"
and
"C:\My Folder\Select Split Files.bat" {f}
If you still have trouble you might have to use the full path to dopusrt.exe which in my computer is:
Just so you know, in the batch file the %~n1.* represents the name only of each file dopus sends to the batch file for processing.[/quote]
You see html tag because i quote previous message.
The previous version of button (the all .001 joiner) works fine so i don't think it may be a path problem...
DOpus (or me) seems have some problem working with previously built button. I rebuilt a new one from scratch and now it works. it prompt a Select File box that ask me for extension (*. already there). Is it the expected output?
Sounds like you got it to work except I have no idea what you are seeing. The method I suggested should not pop up a dialog box, it should take the split file you have selected (for example p8141557.tif.004) and then select all the rest of the split files with the same file name.
If you are still having problems post the actual button commands along with what is in your batch file AND tell us what version of Windows you are using.
Ok, your screen shot images indicate the batch file is echoing the command it's executing to the screen, which is normal. In other words, it is not actually prompting you to do anything, it is telling you what it is doing. If things are working now, you can add
runmode hide
To your button command ahead of what you have now which is:
"C:\Select Split Files.bat" {f}
So it becomes:
runmode hide
"C:\Select Split Files.bat" {f}
That will hide the "DOS Box" so it will appear to be a DOpus command running.