Page 1 of 2

scan folder and subfolders?

Posted: 20 Jun 2021 11:16
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

Re: scan folder and subfolders?

Posted: 20 Jun 2021 12:12
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

Re: scan folder and subfolders?

Posted: 20 Jun 2021 12:29
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 :(

Re: scan folder and subfolders?

Posted: 20 Jun 2021 12:35
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...

Re: scan folder and subfolders?

Posted: 20 Jun 2021 12:40
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

Re: scan folder and subfolders?

Posted: 20 Jun 2021 12:47
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?

Re: scan folder and subfolders?

Posted: 20 Jun 2021 12:48
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

Re: scan folder and subfolders?

Posted: 20 Jun 2021 13:55
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

Re: scan folder and subfolders?

Posted: 20 Jun 2021 15:08
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 :(

Re: scan folder and subfolders?

Posted: 20 Jun 2021 15:12
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...

Re: scan folder and subfolders?

Posted: 20 Jun 2021 15:28
by FlyAway
21.70 trial version

always the same :(

Re: scan folder and subfolders?

Posted: 20 Jun 2021 15:34
by highend
text quicksearch("/d", "X:\");

Execute that from the address bar and show the output

Re: scan folder and subfolders?

Posted: 20 Jun 2021 15:48
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

Re: scan folder and subfolders?

Posted: 20 Jun 2021 16:25
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
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

Re: scan folder and subfolders?

Posted: 20 Jun 2021 20:31
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! :)