Paper Folder Save to specific filename with auto overwrite

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
neil9090
Posts: 64
Joined: 28 Jun 2014 00:09

Paper Folder Save to specific filename with auto overwrite

Post 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)

highend
Posts: 13317
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Paper Folder Save to specific filename with auto overwrite

Post 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");
One of my scripts helped you out? Please donate via Paypal

neil9090
Posts: 64
Joined: 28 Jun 2014 00:09

Re: Paper Folder Save to specific filename with auto overwrite

Post 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
Last edited by neil9090 on 22 Feb 2017 00:37, edited 1 time in total.

highend
Posts: 13317
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Paper Folder Save to specific filename with auto overwrite

Post by highend »

No, it's only "/f" :)

I move this to Questions & Answers
One of my scripts helped you out? Please donate via Paypal

Post Reply