Page 2 of 2
Re: Moving Multiple files to different subfolders
Posted: 10 Dec 2024 08:13
by Sahilbakshi
highend wrote: ↑10 Dec 2024 07:59
In the same folder, execute this from the address bar and show the result:
text listfolder(, , 1);
-----------------------------
It opens a box with text:-
"D:\New folder (2)\1.txt|D:\New folder (2)\2.txt|D:\New folder (2)\3.txt|D:\New folder (2)\4.txt|D:\New folder (2)\5.txt|D:\New folder (2)\6.txt|D:\New folder (2)\7.txt|D:\New folder (2)\s.txt"
And gives two options- copy and close
Regards-
Sahil
Re: Moving Multiple files to different subfolders
Posted: 10 Dec 2024 08:25
by highend
Can't reproduce that

- Animation.gif (119.8 KiB) Viewed 1117 times
Re: Moving Multiple files to different subfolders
Posted: 10 Dec 2024 08:44
by Sahilbakshi
highend wrote: ↑10 Dec 2024 08:25
Can't reproduce that
Animation.gif
-----------------------------------
Dear Sir,
I'm running the same code but getting errors. Is it has to do with the version of XYplorer I'm using?
By the way, I'm using 14.80.0200 pro.
It doesn't matter whether I succeed in this or not, what matters is you spent your time on an unknown person me. I never expected I would get response in minutes. Accept my gratitude, Sir.
Regards,
Sahil
Re: Moving Multiple files to different subfolders
Posted: 10 Dec 2024 09:02
by WirlyWirly
I do this all the time by simply selecting the files and using the Batch Rename tool (File > Rename) with
*\* as the wildcard.

- 2024-12-10_00-01-31.png (34.94 KiB) Viewed 1101 times
Re: Moving Multiple files to different subfolders
Posted: 10 Dec 2024 09:12
by highend
This will work on v14.x...
Code: Select all
foreach($file, listfolder(, , 1), "|", "e") {
moveto getpathcomponent($file, "base"), $file, , 2, 2;
}
Re: Moving Multiple files to different subfolders
Posted: 10 Dec 2024 10:47
by Sahilbakshi
highend wrote: ↑10 Dec 2024 09:12
This will work on v14.x...
Code: Select all
foreach($file, listfolder(, , 1), "|", "e") {
moveto getpathcomponent($file, "base"), $file, , 2, 2;
}
-------------------------------
This one worked perfectly. Thank you, Sir, for your time, efforts and patience. Highly appreciated. I'm grateful.
Regards and Thanks,
Sahil
India.
Re: Moving Multiple files to different subfolders
Posted: 10 Dec 2024 10:51
by Sahilbakshi
WirlyWirly wrote: ↑10 Dec 2024 09:02
I do this all the time by simply selecting the files and using the Batch Rename tool (File > Rename) with
*\* as the wildcard.
2024-12-10_00-01-31.png
-----------------------
I don't know what you said but thanks anyway for your time and efforts.
Regards & Thanks,
Sahil.
