Newsgroups: microsoft.public.scripting.vbscript
From: Tom Lavedas <tglba...@verizon.net>
Date: Tue, 15 May 2012 13:40:18 -0700 (PDT)
Local: Tues, May 15 2012 4:40 pm
Subject: Re: How to read sound file playing time?
On May 15, 11:51 am, "Dave \"Crash\" Dummy" <inva...@invalid.invalid>
wrote: > When I list sound files (wave, mp3, etc.) in Explorer, and can select a
The Shell.Application objects .GetDetailsOf() function should work to
> "length" column that shows playing time for the file. Is there some way > I can retrieve that value for a sound file using script? > -- > Crash > "When you get to a fork in the road, take it."
return the "length" property ... wsh.echo FileProperty("C:\users\tlavedas\Documents\Script\Testing\",
function FileProperty(sPath, sFileName, nProperty)
The value '27' is appropriate for the Length property in Win7. It is
sFolderPathspec = createobject("wscript.shell").currentdirectory
Set objShell = CreateObject ("Shell.Application")
wsh.echo join(arrHeaders, vbcrlf)
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||