Difference between djvulibre and djview
" option visible in the pop-up menu - select it. First we have to find a file that we wish to view in doknir (for example PDF file).
#DIFFERENCE BETWEEN DJVULIBRE AND DJVIEW HOW TO#
Now we will try to "teach" Windows how to open files using our new "doknir launcher". If cFileDok='' then begin Close Exit end ĬTo:=cMyDok+'\'+ExtractFileName(cFileDok) I could use OnCreate event to copy file, but I prefer timer (I named it Launcher) because it gives me more flexibility: Res := ShGetSpecialFolderPath(0, Path, csidl_Personal, False) Įxception.Create('Could not determine My Documents path') įunction FileCopy(cF, cT: string):integer We need three functions: to get "My documents" folder (because there is our incoming folder), to get the file size and to copy file: Wouldn't it be nice to open such files directly using double-click? Well, after first two steps it is not difficult to make the third step: We will write a simple Delphi executable (called "doknir launcher") that will, when executed by double-click on a file, copy that file to the incoming folder. We've already seen that using doknir it is possible to open (view) files with the extension. BTW, this is the default behaviour - you can set that this action is triggered by single-click: What happens when you double-click on the file (or shortcut) in Windows operating system (OS)? Based on the file extension (usually 2, 3 or 4 letters after the last dot in the file name) OS determines its file type and then executes an application that can open (display) selected file. To be unperturbed when not appreciated byĭo you know that there exists a mouse with double-click button? If you don't, now you know! To have friends come from afar (to share learning)