filter files ending in 'L'
Re: filter files ending in 'L'
if it is possible please give the code sir.
-
- Posts: 205
- Joined: 27 May 2014 05:24
Re: filter files ending in 'L'
Run this in the folder:
Code: Select all
$list = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
foreach($i,$list,""){
$results = replace(quicksearch(">($i)\.[^.]+$ /nc"), <crlf>, "|");
if($results){
if(exists($i) != 2){
new($i,"dir")
}
moveto($i, $results);
}
}
Re: filter files ending in 'L'
A bit more streamlined...
Code: Select all
$letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
foreach($letter, $letters, "") {
$files = quicksearch(">$letter\.[^.]+$ /nc", , "|");
if ($files) { moveto $letter, $files, , 2, 2; }
}
One of my scripts helped you out? Please donate via Paypal
Re: filter files ending in 'L'
i am getting the error "unable to access file 1H.wav, 2H.wav etc"
and wrong files are going to wrong letter folders.
and wrong files are going to wrong letter folders.
-
- Posts: 205
- Joined: 27 May 2014 05:24
Re: filter files ending in 'L'
Check if those files are open in your media player or some other application. Try exiting any application that you may have used those files in previously.
Give an example of a filename that was moved to a wrong folder.
Give an example of a filename that was moved to a wrong folder.
Re: filter files ending in 'L'
no player is running.
the following files gone to E folder.
24H.WAV
25H.WAV
26H.WAV
27H.WAV
28H.WAV
29H.WAV
30H.WAV
31H.WAV
and 01L.WAV, O2L.WAV ... 1000L.WAV are not accessible.
the following files gone to E folder.
24H.WAV
25H.WAV
26H.WAV
27H.WAV
28H.WAV
29H.WAV
30H.WAV
31H.WAV
and 01L.WAV, O2L.WAV ... 1000L.WAV are not accessible.
Re: filter files ending in 'L'
Can't reproduce...
One of my scripts helped you out? Please donate via Paypal