Are you using XP (as your sig suggests) or Windows 7?
I'm going to fool around with this today and let you know if I have any luck.
I have six data drives in my media server totaling 13TB. Looking for an application, batch file, something, to search all the drives quickly and display all movies in one window. And the files are clickable.
Windows search almost does it. The biggest issue is I don't want to search the C drive. I can enter a search like such:
search for = .iso .mkv .mp4
Can list each drive manually = f:\;g:\;h:\; etc
and all comes out good. View as list, sort by name and it works fine.
I can save the search and have it on the desktop and it saves what I am looking for (.iso etc) but it defaults to "all local drives" including C. Not a huge deal honestly, but there is nothing on the C drive I want and it slows the search looking through windows and program files. And although I have a KB hooked to the machine it sits on top of the tower behind the TV and I only get it out when I really need it. So typing the drives every time is a no go and my wife certainly won't do it.
I have Power DVD 12 Ultra and it can do this in a very nice format, but it doesn't pick up ISO files, which 99%+ of the 900 movies are ISO files.![]()
Is there a way to edit the registry to set default search parameters for specific locations? And it would be really nice if it can default the view and sort to list and name. That way, my wife and kids can click the saved search, wait a few seconds and everything on all drives is displayed in an alphabetical list.
Or is there a program out there someone can point me to that already does this? I searched but all I could find is database apps that don't scan, they only take manual entries and the files are not clickable.
Is there a simple batch file that can do this and pump it out to explorer in the requested format? Again, I searched but could only find a way to send it to a simple text list. Maybe it is as simple as redirecting the output to explorer?
Any help would be appreciated.![]()
8 Pro 64bit
AMD FX 8350
Asus Sabertooth 990FX R2.0
16GB G.Skill Sniper 1866MHz
OCZ Vertex 4 128GB SSD
HDD's 750GB x2/500GB/250GB
2x XFX 6870 1GB
12x BD-ROM
PC P&C 750W PSU
Cooler Master HAF 932 Red LED
CM Hyper 212 EVO w/2x SickleFlow 120mm Red LED
Logitech X540 5.1 Surround
2X Acer 23" LED - Eyefinity: 3840x1080
"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."
- Albert Einstein
Are you using XP (as your sig suggests) or Windows 7?
I'm going to fool around with this today and let you know if I have any luck.
Don't fear the penguin - www.slackware.com
It is not the system in my sig. This is my media server running XP 64.
8 Pro 64bit
AMD FX 8350
Asus Sabertooth 990FX R2.0
16GB G.Skill Sniper 1866MHz
OCZ Vertex 4 128GB SSD
HDD's 750GB x2/500GB/250GB
2x XFX 6870 1GB
12x BD-ROM
PC P&C 750W PSU
Cooler Master HAF 932 Red LED
CM Hyper 212 EVO w/2x SickleFlow 120mm Red LED
Logitech X540 5.1 Surround
2X Acer 23" LED - Eyefinity: 3840x1080
"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."
- Albert Einstein
I'd use a batch to create an HTML list of file types, then modify the resulting file by adding some HTML markup.
I don't speak dos, but it seems a fairly simple task.
You can read in a file line-by-line (the dir command results) and set that string to a value, then rewrite the string as:
echo "<a href "string">string</a>"
next line
echo "
I found a couple code blocks I was trying to figure out, the firs one creates the menu listing with path and file name,
The second block adds a blank line. I was trying to figure out how to replace the blank line with some markup, like at least a line break.
The third block is supposed to find/replace a string with a new string.
dir *.pdf /-p /b /s /on >Menu.htm
@ECHO OFF
SET origfile=Menu.htm
SET tempfile=temp.txt
SET insertbefore=2
FOR /F %%C IN ('FIND /C /V "" ^<%origfile%') DO SET totallines=%%C
<%origfile% (FOR /L %%i IN (1,1,%totallines%) DO (
SETLOCAL EnableDelayedExpansion
SET /P L=
IF %%i==%insertbefore% ECHO(
ECHO(!L!
ENDLOCAL
)
) >%tempfile%
COPY /Y %tempfile% %origfile% >NUL
DEL %tempfile%
@echo off
REM -- Prepare the Command Processor --
SETLOCAL ENABLEEXTENSIONS
SETLOCAL DISABLEDELAYEDEXPANSION
::BatchSubstitude - parses a File line by line and replaces a substring"
::syntax: BatchSubstitude.bat OldStr NewStr File
:: OldStr [in] - string to be replaced
:: NewStr [in] - string to replace with
:: File [in] - file to be parsed
:$changed 20100115
:$source http://www.dostips.com
if "%~1"=="" findstr "^::" "%~f0"&GOTO:EOF
for /f "tokens=1,* delims=]" %%A in ('"type %3|find /n /v """') do (
set "line=%%B"
if defined line (
call set "line=echo.%%line:%~1=%~2%%"
for /f "delims=" %%X in ('"echo."%%line%%""') do %%~X
) ELSE echo.
)
PM 1.4GHz 512MB Intel 82852/82855 GM/GME gfx (nx5000) XP Pro
AMD 450MHz K6-2 MMX 3DNOW! 384MB PC100 3dfx VooDoo3-3500TV 16MB AGP W98SE
AMD Semp3000+ 512MB PC2700 Rad7000 32MB AGP XP
AMD Semp3000+ 512MB PC3200 fx5600U 128MB AGP XP
P4 2.5GHz Northwood 1GB PC3200 GeForce 7300 GT 512MB AGP XP Pro
P4 2.8 GHz HT 2GB PC3200 AIW 3650HD 512MB PCI-e XP Home
ASUS Z68 PRO/GEN3 i7-2700K CORSAIR DDR3 1600 XFX HD-697A-CNFC OCZ Vertex 3 120GB (SSD) Corsair 850W 80+Gold Win7 Pro 64b
Never mind that stuff up there. This seems to almost work. It at least produces a text list of pdf files and a html file of links to those files.
The only problem is that the visible link text just says "Link" for every file. I cannot figure out how to duplicate the file name in place of the Link text...
Code:dir *.pdf /-p /b /s /on >files.txt del Menu.htm echo "<a href=" >Menu.htm @echo off setlocal set addtext=">Link</a><br><a href=" for /f "delims=" %%a in (files.txt) do (echo/|set /p =%%a%addtext% & echo/) >>Menu.htm
PM 1.4GHz 512MB Intel 82852/82855 GM/GME gfx (nx5000) XP Pro
AMD 450MHz K6-2 MMX 3DNOW! 384MB PC100 3dfx VooDoo3-3500TV 16MB AGP W98SE
AMD Semp3000+ 512MB PC2700 Rad7000 32MB AGP XP
AMD Semp3000+ 512MB PC3200 fx5600U 128MB AGP XP
P4 2.5GHz Northwood 1GB PC3200 GeForce 7300 GT 512MB AGP XP Pro
P4 2.8 GHz HT 2GB PC3200 AIW 3650HD 512MB PCI-e XP Home
ASUS Z68 PRO/GEN3 i7-2700K CORSAIR DDR3 1600 XFX HD-697A-CNFC OCZ Vertex 3 120GB (SSD) Corsair 850W 80+Gold Win7 Pro 64b
OK, this makes a slightly messy html menu, but it seems to work:
You could play with the file types that it collects. I just had a lot of PDF files here to play with.Code:dir *.pdf /-p /b /s /on >files.txt del Menu.htm echo "<a href=" >Menu.htm @echo off setlocal set addtext1=">" set addtext2="</a><br><a href=" for /f "delims=" %%a in (files.txt) do (echo/|set /p =%%a%addtext1% & echo/|set /p =%%a%addtext2% & echo/) >>Menu.htm
PM 1.4GHz 512MB Intel 82852/82855 GM/GME gfx (nx5000) XP Pro
AMD 450MHz K6-2 MMX 3DNOW! 384MB PC100 3dfx VooDoo3-3500TV 16MB AGP W98SE
AMD Semp3000+ 512MB PC2700 Rad7000 32MB AGP XP
AMD Semp3000+ 512MB PC3200 fx5600U 128MB AGP XP
P4 2.5GHz Northwood 1GB PC3200 GeForce 7300 GT 512MB AGP XP Pro
P4 2.8 GHz HT 2GB PC3200 AIW 3650HD 512MB PCI-e XP Home
ASUS Z68 PRO/GEN3 i7-2700K CORSAIR DDR3 1600 XFX HD-697A-CNFC OCZ Vertex 3 120GB (SSD) Corsair 850W 80+Gold Win7 Pro 64b
Thanks CT. I will play around with it.
I found this VBS script and it works fine, but when I try put multiple drive letters in "ParseName("D:\")" it comes up with an error. Need to figure out how to add multiple drive letters. And possibly add search terms (.iso .mkv .mp4).
Code:Set objShell = CreateObject("Shell.Application") Set objFolder = objShell.Namespace(&H11&) Set objFolderItem = objFolder.ParseName("D:\") objFolderItem.InvokeVerb("find")
8 Pro 64bit
AMD FX 8350
Asus Sabertooth 990FX R2.0
16GB G.Skill Sniper 1866MHz
OCZ Vertex 4 128GB SSD
HDD's 750GB x2/500GB/250GB
2x XFX 6870 1GB
12x BD-ROM
PC P&C 750W PSU
Cooler Master HAF 932 Red LED
CM Hyper 212 EVO w/2x SickleFlow 120mm Red LED
Logitech X540 5.1 Surround
2X Acer 23" LED - Eyefinity: 3840x1080
"The significant problems we face cannot be solved at the same level of thinking we were at when we created them."
- Albert Einstein
There are currently 1 users browsing this thread. (0 members and 1 guests)