>Try it from the command line.  If it works from there, it will work when 
>invoked via this means.
>
From the command line, running:
        P:\Music\slimserver\trunk\server\scanner.bat --rescan "M:\Music\Phil's 
Music\After The Fire"

returns:
        Can't locate object method "init" via package "Slim::Utils::Scanner" at 
P:\Music\slimserver\trunk\server\scanner.bat line 101.

Changing that to run scanner.pl worked, although it seemed quite slow - took 
over a minute to scan one album.

I changed the registry to invoke scanner.pl, but this causes a windows explorer 
popup:
        M:\Music\Phil's Music\After The Fire is not a valid Win32 application.

I finally got it to work by making a batch file to invoke scanner.pl, and then 
execute the batch file from the registry string:

ShellScan.bat:
        P:
        cd P:\Music\slimserver\trunk\server
        scanner.pl --rescan %1

SlimServerScan.reg:
        Windows Registry Editor Version 5.00

        [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\SlimScan]
        @="Slim Scan"

        [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Folder\shell\SlimScan\Command]
        @="P:\\Music\\slimserver\\trunk\\server\\ShellScan.bat \"%L\""

Phil
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/beta

Reply via email to