scan folder and subfolders?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
FlyAway
Posts: 28
Joined: 26 Nov 2019 21:18

scan folder and subfolders?

Post by FlyAway »

Hi :)
I have to work on a PC that contains 10 Hard Disk, and each of them is full of folders and subfolders full of videos.
How do I scan all hard drives quickly for previews?
I would like to run the command at night, so in the morning I have all the thumbnails ready. Thanks

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: scan folder and subfolders?

Post by highend »

Something like this should work (try it with one path that doesn't contain hundreds of files / subfolders first)...
Create thumbnails for multiple paths_v0.1.xys
(2.51 KiB) Downloaded 35 times
One of my scripts helped you out? Please donate via Paypal

FlyAway
Posts: 28
Joined: 26 Nov 2019 21:18

Re: scan folder and subfolders?

Post by FlyAway »

I ran the script, got a couple of error messages on a path that wasn't available, and then nothing else happened.
No window asking me which hard disk to add or when to start the scan ... in short, nothing.
But I probably did something wrong because I'm not an expert, could you tell me, step by step, what to do? Thank you :(

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: scan folder and subfolders?

Post by highend »

Read the description inside the script and add your paths to scan accordingly?

The script runs when you execute it, not "at night"
You're free to add an entry to your Windows task scheduler to do that though...
One of my scripts helped you out? Please donate via Paypal

FlyAway
Posts: 28
Joined: 26 Nov 2019 21:18

Re: scan folder and subfolders?

Post by FlyAway »

ok...now it work :)
but but he changed the preview view settings, I had them big and he makes them small for me :(

edit
there must be some problem, the scan started, then stopped. Now I see the files in list mode and the scan is terminated after (I think) the first scanned folder
Last edited by FlyAway on 20 Jun 2021 12:48, edited 1 time in total.

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: scan folder and subfolders?

Post by highend »

// Make sure we are in details view
// Go back into start path and switch to details view
Remove the belonging two lines if (get("view") != 0) { #302; } if you don't want that?
One of my scripts helped you out? Please donate via Paypal

FlyAway
Posts: 28
Joined: 26 Nov 2019 21:18

Re: scan folder and subfolders?

Post by FlyAway »

edit:
there must be some problem, the scan started, then stopped. Now I see the files in list mode and the scan is terminated after (I think) the first scanned folder

the Remove the belonging two lines it seems to work but the scan stopped immediately

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: scan folder and subfolders?

Post by highend »

Try this one (again, enter your test paths!) and post the output of the result window afterwards...
Create thumbnails for multiple paths_v0.2.xys
(3.22 KiB) Downloaded 35 times
One of my scripts helped you out? Please donate via Paypal

FlyAway
Posts: 28
Joined: 26 Nov 2019 21:18

Re: scan folder and subfolders?

Post by FlyAway »

thanks
1 sec of scan and a windows with:

Scan result
===========
0005 thumbnail(s) created [X:\]
--- No thumbnails created [Y:\]

I think it have scan only the root directory :(

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: scan folder and subfolders?

Post by highend »

Which exact XY version do you use?

Replace this line

Code: Select all

$allPaths .= $path . <crlf> . quicksearch("/d", $path) . <crlf>;
with this

Code: Select all

$allPaths .= $path . <crlf> . quicksearch("/rd", $path) . <crlf>;
and try again...
One of my scripts helped you out? Please donate via Paypal

FlyAway
Posts: 28
Joined: 26 Nov 2019 21:18

Re: scan folder and subfolders?

Post by FlyAway »

21.70 trial version

always the same :(

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: scan folder and subfolders?

Post by highend »

text quicksearch("/d", "X:\");

Execute that from the address bar and show the output
One of my scripts helped you out? Please donate via Paypal

FlyAway
Posts: 28
Joined: 26 Nov 2019 21:18

Re: scan folder and subfolders?

Post by FlyAway »

X:\$RECYCLE.BIN
X:\$RECYCLE.BIN\S-1-5-21-1263823354-3481106546-622204311-1001
X:\$RECYCLE.BIN\S-1-5-21-1263823354-3481106546-622204311-1001\$REWURP5
X:\$RECYCLE.BIN\S-1-5-21-1263823354-3481106546-622204311-1001\$RK65LUV
X:\$RECYCLE.BIN\S-1-5-21-1263823354-3481106546-622204311-1001\$RV0LD61
X:\$RECYCLE.BIN\S-1-5-21-2682391535-1726649268-3639903838-1001
X:\$RECYCLE.BIN\S-1-5-21-3630339744-1666935714-1831310251-1001
X:\$RECYCLE.BIN\S-1-5-21-3701517089-3556926478-3919291313-1001
X:\$RECYCLE.BIN\S-1-5-21-3721648359-3868741616-1744185146-1001
X:\$RECYCLE.BIN\S-1-5-21-87622446-2672479227-1490456463-1001
X:\- Altro
X:\- Old
X:\mysite.net
X:\mysite.net
X:\mysite.com
X:\System Volume Information
X:\mysite.com
X:\mysite.com
X:\mysite.com\- mysite.com
X:\mysite.com\home
X:\mysite.com
X:\mysite.com

I have change the real url with mysite

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: scan folder and subfolders?

Post by highend »

That makes no sense...

The script is using the same quicksearch and it doesn't return anything there (apart from the root folder(s))?
Create thumbnails for multiple paths_v0.3.xys
(3.56 KiB) Downloaded 30 times
Again, enter X:\ and Y:\ folders in the script and run it afterwards.

IT WILL STOP and show the folders to process. Show the output
One of my scripts helped you out? Please donate via Paypal

FlyAway
Posts: 28
Joined: 26 Nov 2019 21:18

Re: scan folder and subfolders?

Post by FlyAway »

I solved the problem! :)
I don't know what it was but I downloaded the latest version 21.90 and your script works perfectly. I don't know how to thank you for your help (and patience), thanks again! :)

Post Reply