N
NeedAFixSoon
This script used to work or maybe I'm feeding the wrong parameters. But can anyone see what's wrong and why I get an error. I am trying to get a property of an mp3 file.
The name of the script is get_info.bat. The contents of the file is:
@if .%3==. echo Syntax: %0 Pathspec filename index&exit /b 1
@(echo with CreateObject("Shell.Application"^).Namespace("%~1"^)
echo wsh.echo "%~2", .GetDetailsOf(.Items,%3^)^&":", _
echo .GetDetailsOf(.Parsename("%~2"^), %3^): end with
) > %temp%\script.vbs
@cscript //nologo %temp%\script.vbs
@del %temp%\script.vbs
I am using these parameters for example:
get_info.bat m:\mymusic\311\311\ Down.mp3 12
This is the error I get now:
C:\Users\username\AppData\Local\Temp\script.vbs(1, 1) (null): Unspecified error
Any ideas on the script or the parameters?
Continue reading...
The name of the script is get_info.bat. The contents of the file is:
@if .%3==. echo Syntax: %0 Pathspec filename index&exit /b 1
@(echo with CreateObject("Shell.Application"^).Namespace("%~1"^)
echo wsh.echo "%~2", .GetDetailsOf(.Items,%3^)^&":", _
echo .GetDetailsOf(.Parsename("%~2"^), %3^): end with
) > %temp%\script.vbs
@cscript //nologo %temp%\script.vbs
@del %temp%\script.vbs
I am using these parameters for example:
get_info.bat m:\mymusic\311\311\ Down.mp3 12
This is the error I get now:
C:\Users\username\AppData\Local\Temp\script.vbs(1, 1) (null): Unspecified error
Any ideas on the script or the parameters?
Continue reading...