Page 1 of 1

Paper Folder Save to specific filename with auto overwrite

Posted: 21 Feb 2017 23:46
by neil9090
I have a simple script to recreate a paperfolder.

goto "C:\test?* /fo";
#778; // convert results to a paper folder but shows a dialog box.

Now my question is how to save the results as a paperfolder aka convert to a paperfolder but without doing a dialog prompt.

I am using now this;
goto "C:\test?* /fo";
$files = report("{Fullname}<crlf>");
paperfolder("current.txt", $files, , n);
goto "paper:current";

Is there a better way or could there be a mode=c (convert current tab into paperfolder)?
e.g. paperfolder("current.txt",,, c); // take the current tab list and save to a paperfolder file (with overwrite no prompt)

Re: Paper Folder Save to specific filename with auto overwrite

Posted: 21 Feb 2017 23:57
by highend
Quite a bit complicated what you're doing there...

Btw, what does "o" in your quicksearch mean? From "/fo"

This one takes all files from all subfolders in the current tab and makes a paperfolder
named "current.txt" out of it + loads it immediately:

Code: Select all

paperfolder("current", quicksearch("/f"), , "nl");

Re: Paper Folder Save to specific filename with auto overwrite

Posted: 22 Feb 2017 00:22
by neil9090
Thanks highend, I thought you might have the answer.

I thought the quick search was /fo = files only i.e. hide directories... I might be wrong...

Love the one liner...

Just had a try and had some recursive error message come up, changed the quicksearch into a variable then used that and it works fine.

/f works just as well... must have added the o or seen it somewhere

Thanks

Re: Paper Folder Save to specific filename with auto overwrite

Posted: 22 Feb 2017 00:35
by highend
No, it's only "/f" :)

I move this to Questions & Answers