I am sorry but I cannot help with Polish letters. Polish is all Greek to me!
No offense meant to Nikos!
How to save all the names of JPG files?
Moderators: fgagnon, nikos, Site Mods
Re: How to save all the names of JPG files?
you don't need xplorer2 or any other tool to get a listing of files. Open DOS window and type
dir c:\*.jpg /b /s > list.txt
use "help dir" for more information
dir c:\*.jpg /b /s > list.txt
use "help dir" for more information
Re: How to save all the names of JPG files?
there is no problem with stability, it's all about memory allocation and management. Scrap containers work exactly the same if you have one or a million items in them. Only when you have many items in you must wait a long time
Re: How to save all the names of JPG files?
Hi Makinero,
I have found a workaround for you.
1. Run the following PowerShell command-line:
Of course, you've got to adjust the paths ("e:\", and "e:\tempz\jpglist.txt") in the above code to suit your own system.
This will give you "jpglist.txt" with a listing of all the ".jpg" files under the "e:" drive (or any drive that you specify).
Now you might ask "why use a PowerShell command-line?" Simply because the CMD.EXE DIR command does not support Latin extended characters. Hence your problem with Polish characters. On the other hand, PowerShell supports Latin extended characters fully (built-in Unicode support).
As I understand things, you only want the ".jpg" files located in folders beginning with "VK". I haven't found a way to do that with a PowerShell command-line. Maybe Kilmatead can step in here.
But there is a workaround using "Notepad++" (Download Notepad++ 6.5.5).
1. Copy "\VK" to the Windows clipboard.
2. Open "jpglist.txt" in Notepad++.
3. Click "TextFX" on the Notepad++ main menu bar.
4. Choose "TextFX Viz" from the drop-down.
5. Choose "Hide Lines without (Clipboard) text".
You'll get only the lines that contain the "\VK" string and host a ".jpg" file.
HTH.
Cheers,
Robert
I have found a workaround for you.
1. Run the following PowerShell command-line:
Code: Select all
gci -filter *.jpg e:\ -r | % { $_.FullName } > e:\tempz\jpglist.txt
This will give you "jpglist.txt" with a listing of all the ".jpg" files under the "e:" drive (or any drive that you specify).
Now you might ask "why use a PowerShell command-line?" Simply because the CMD.EXE DIR command does not support Latin extended characters. Hence your problem with Polish characters. On the other hand, PowerShell supports Latin extended characters fully (built-in Unicode support).
As I understand things, you only want the ".jpg" files located in folders beginning with "VK". I haven't found a way to do that with a PowerShell command-line. Maybe Kilmatead can step in here.
But there is a workaround using "Notepad++" (Download Notepad++ 6.5.5).
1. Copy "\VK" to the Windows clipboard.
2. Open "jpglist.txt" in Notepad++.
3. Click "TextFX" on the Notepad++ main menu bar.
4. Choose "TextFX Viz" from the drop-down.
5. Choose "Hide Lines without (Clipboard) text".
You'll get only the lines that contain the "\VK" string and host a ".jpg" file.
HTH.
Cheers,
Robert
- FrizzleFry
- Platinum Member
- Posts: 1241
- Joined: 2005 Oct 16, 19:09
Re: How to save all the names of JPG files?
just add a where-object filter to your command
or use select-string
Code: Select all
gci -filter *.jpg e:\ -r | where-object{$_.DirectoryName -match '\\VK'} | % { $_.FullName } > e:\tempz\jpglist.txt
Code: Select all
gci -filter *.jpg e:\ -r | % { $_.FullName } | select-string -pattern '\\VK.*?\\' > e:\tempz\jpglist.txt
Re: How to save all the names of JPG files?
Jumping into the discussion late, but why not simply do a search in x2 for *.Jpg with additional rule "path contains VK" and copy the results from the scrap pane into an editor?