Multi Commander > Feature Requests and Suggestions

Shaping the Future of MultiCommander - Your Feedback on Development Priorities

<< < (4/5) > >>

Matthias515566:

--- Quote from: Mathias (Author) on May 12, 2025, 12:54:13 ---Printing what ? A text file ?  File list ?

--- End quote ---
Any file like Word document, PDF-Document. Or CAD. Select files to print and use the command.

Ulfhednar:

--- Quote from: Mathias (Author) on May 12, 2025, 12:58:05 ---
--- Quote from: Ulfhednar on May 07, 2025, 14:43:53 --- - I would like to be able to set MScript to recurse sub-dirs - as with DOS script cmds e.g.

--- Code: ---for /d /r "%base_dir%" %%d in (.) do
--- End code ---

--- End quote ---
Don't understand.. you want a MultiScript function to get a list of files for a folder and subfolders. ?

--- End quote ---
Thanks for the reply Mathias.
The code above was the DOS solution for something I failed to get MS to do.
I wanted to search a folder, its' sub-dirs & select files & then run a process (e.g. get source folder; select *.txt, *.jpg, *.bat in the folder inc sub-dirs; delete).
I couldn't determine how get MS to recurse & "do" in the way the DOS command does, which I needed as I wanted to handle several different file types in nested folders.
Assuming MS cannot do this (& it is not just my incompetence!) I'd like MS to have this functionality.

Mathias (Author):

--- Quote from: Ulfhednar on May 07, 2025, 14:43:53 --- - I'd like NODIALOG added to DeleteFiles e.g.

--- Code: ---@var $options[] = {“RECYLE”};  "NODIALOG"   
DeleteFiles($array, $options);
--- End code ---
  (Maybe Recyle needs to be spell-checked?  :P)

--- End quote ---

DeleteFile already support NODIALOG option.. and RECYCLE. it is actually the documentation that misspell it. the code actually require it as RECYCLE

// Deletes all selected files to recycle. No confirm dlg, no progress

--- Code: ---@var $filenames = GetSourceSelectedPaths();
@var $options[] = {"NODIALOG", "RECYCLE", "NOPROGRESS"};
DeleteFiles( $filenames, $options);
--- End code ---

Mathias (Author):

--- Quote from: Matthias515566 on May 13, 2025, 20:16:01 ---
--- Quote from: Mathias (Author) on May 12, 2025, 12:54:13 ---Printing what ? A text file ?  File list ?

--- End quote ---
Any file like Word document, PDF-Document. Or CAD. Select files to print and use the command.

--- End quote ---
You mean native own printing. Than MC would have to be able to open and render all those format.. Sorry that will not happen
But if you have office install and right click on an office file.. you get print option in the shell context menu. But then Office is handling the printing.

Ulfhednar:

--- Quote from: Mathias (Author) on May 15, 2025, 10:02:23 ---[***

DeleteFile already support NODIALOG option.. and RECYCLE. it is actually the documentation that misspell it. the code actually require it as RECYCLE

// Deletes all selected files to recycle. No confirm dlg, no progress

--- Code: ---@var $filenames = GetSourceSelectedPaths();
@var $options[] = {"NODIALOG", "RECYCLE", "NOPROGRESS"};
DeleteFiles( $filenames, $options);
--- End code ---

--- End quote ---

Thanks for the info Mathias.
I tried RECYCLE & it seemed to fail in the debugger, when I added it as RECYLE  it worked (!) so I figured that it was just sth that slipped through.
& it has been working for weeks as a button, it was adding NODIALOG  that caused it to fail... perhaps somehow the combo of RECYLE with NODIALOG reveals the error?
Running the debugger today the options all appear to work (I didn't realize that I could use NOPROGRESS) with the caveat that the files selected do not appear to go to the recycle bin, & running this routine in the debugger multiple times caused MC to simultaneously close when I closed the Explorer recycle bin window (this had been opened after the routine to check for the files).  Did it 3 times in a row. 
Wondering if the options need to be in the order shown or if can I use them in any sequence? 
I will have to try & fully test all this again later on..... ::)
I will let you know what I find ;)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version