Search found 13 matches

by perseid
05 Jul 2025 21:24
Forum: Tips & Tricks, Questions & Answers
Topic: [Solved] Move up only files in subfolder
Replies: 9
Views: 3826

Re: Move up only files in subfolder

For the structure you've just posted, this would have been enough: $rootFolders = listfolder(, , 2, <crlf>); end (!$rootFolders), "No folder(s) in current directory, aborted!"; // If the root folder has one subfolder and one file in it, move it up setting "BackgroundFileOps", 0;...
by perseid
05 Jul 2025 06:12
Forum: Tips & Tricks, Questions & Answers
Topic: [Solved] Move up only files in subfolder
Replies: 9
Views: 3826

Re: Move up only files in subfolder

It will skip if e.g. folder 1 has more subfolders than 1 (or none at all) or if a subfolder contains more than one file (or none). You are sure that's not the case on your side? Just to make sure I understood, I modified the file structure so that it meets the condition to run the script, i.e., onl...
by perseid
04 Jul 2025 02:01
Forum: Tips & Tricks, Questions & Answers
Topic: [Solved] Move up only files in subfolder
Replies: 9
Views: 3826

Re: Move up only files in subfolder

This is the file structure I created to test your script the results of which I reported in my previous post:
c:\1 folder with subfolders 2 and 3
2.txt in folder 1
1.txt and 2.txt in subfolder 2
3.txt in subfolder 3
by perseid
03 Jul 2025 23:16
Forum: Tips & Tricks, Questions & Answers
Topic: [Solved] Move up only files in subfolder
Replies: 9
Views: 3826

Re: Move up only files in subfolder

highend, this is what I did: 1) Open parent folder with XYplorer (it will display all subfolders and parent files) 2) In the upper menu click on "Scripting" and then "Run Script..." 3) Copy your script and paste it in the "Run Script..." window 4) When I run the script ...
by perseid
03 Jul 2025 19:21
Forum: Tips & Tricks, Questions & Answers
Topic: [Solved] Move up only files in subfolder
Replies: 9
Views: 3826

Re: Move up only files in subfolder

Hi highend, first option: abc.txt moved (individually) into folder 1 and gih.txt moved (individually) into folder 2 with the added option that in case "def.txt" or "jkl.txt" has the same filename as "abc.txt" or "gih.txt", that the move up command will not res...
by perseid
03 Jul 2025 08:45
Forum: Tips & Tricks, Questions & Answers
Topic: [Solved] Move up only files in subfolder
Replies: 9
Views: 3826

[Solved] Move up only files in subfolder

Say I have multiple folders each with a subfolder and two files, one in the subfolder and the other one in the parent folder. How can I tell XYplorer to just move up the subfolder file but not the folder file? thanks
by perseid
28 Mar 2012 05:02
Forum: Script Exchange
Topic: Need a script to move selected files to specific folders
Replies: 2
Views: 2131

Re: Need a script to move selected files to specific folders

Thanks highend, your script and instructions worked flawlessly. Regards.
by perseid
27 Mar 2012 21:30
Forum: Script Exchange
Topic: Need a script to move selected files to specific folders
Replies: 2
Views: 2131

Need a script to move selected files to specific folders

Hi, say I select with XYplorer a bunch of files in a certain location and when pressing the "a" keystroke it will move those files to the c:\art\ folder, when pressing the "h" keystroke it will move those files to the c:\history\ folder, and so on. What would be a suitable script...
by perseid
26 Mar 2012 21:25
Forum: Tips & Tricks, Questions & Answers
Topic: Batch rename PDF files using metadata?
Replies: 21
Views: 7140

Re: Batch rename PDF files using metadata?

I wanted the renaming to append as follows: "<Title>_<Author>_originalfilename.pdf" Just change this line to whatever you prefer: $NewName = "$Author" . "_" . "$Title" . "_" . "$FileName"; e.g.: $NewName = "$Title" . "_"...
by perseid
26 Mar 2012 20:38
Forum: Tips & Tricks, Questions & Answers
Topic: Batch rename PDF files using metadata?
Replies: 21
Views: 7140

Re: Batch rename PDF files using metadata?

@perseid global $File, $FileName; $SelectedItems = get("SelectedItemsPathNames", "|"); foreach($Item, $SelectedItems, "|") { $File = $Item; sub "_SplitFileName"; $Title = property("DocTitle", "$Item"); $Author = property("DocAuthor&qu...
by perseid
26 Mar 2012 19:39
Forum: Tips & Tricks, Questions & Answers
Topic: Batch rename PDF files using metadata?
Replies: 21
Views: 7140

Re: Batch rename PDF files using metadata?

$SelectedItems = get("SelectedItemsPathNames", "|"); foreach($Item, $SelectedItems, "|") { $Title = property("DocTitle", "$Item"); $Author = property("DocAuthor", "$Item"); $NewName = "$Title" . "_" . "$A...
by perseid
26 Mar 2012 07:57
Forum: Tips & Tricks, Questions & Answers
Topic: Batch rename PDF files using metadata?
Replies: 21
Views: 7140

Re: Batch rename PDF files using metadata?

Hi! First of all let me thank you all for your replies. I have no knowledge in writing scripts and I know the best path is to learn but I need to solve the issue at hand now and I appreciate your sending me the scripts. Also, I'm running Windows XP SP3 32bit (US-English). I ran the scripts in XYplor...
by perseid
25 Mar 2012 09:33
Forum: Tips & Tricks, Questions & Answers
Topic: Batch rename PDF files using metadata?
Replies: 21
Views: 7140

Batch rename PDF files using metadata?

Hi, I have a bunch of PDF books that I want to batch rename according to their metadata info (for example "Title_Author_Year_Edition.pdf"). Can this be done with XYplorer? If so, how? Thanks