How to print the file to a folder of music details

I would like to print the Duratón or the length of the music files I have in my repertoire of music.
How to do this. I tried commands like
dir * / has: duration

As far as I KNOW, you will need to write a script to retrieve and print this information.  You can see the duration field in Windows Explorer by clicking View > choose details and selecting 'period' in the list, click View > Details.

However, even once as far as I know, not all the music files have these extended attributes (at least as much to see their Windows is concerned).  After setting my opinion of 'Details' of Windows Explorer to include a period, files mp3 revealed information, but downloaded on iTunes M4A or M4P files do not have.

An example of Visual Basic (to be recorded as *.vbs) Script that displays all extended attributes of a file is here: http://technet.microsoft.com/en-us/library/ee176615.aspx

To see how it works, copy the script and paste it into a Notepad window and save as test.vbs.  Then double click on it.  You need to change the name of the file to the third line of C:\Scripts in a folder containing mp3 files.  For your first test, choose a folder with a few files only, because as it is, this script opens a dialog box (which you will need to click OK) for each attribute of each file.

Here is a list of all the attributes (this script is written in KiXtart, a different scripting language): http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=160880&page=1

From this link, you can determine that 'Name' is attribute 0 and 'Time' attribute 21

You could then modify the example file from the first link of substitute following FOR - NEXT statement

For i = 0 to 34 Wscript.Echo I & vbtab & arrHeaders (i) ____
& ":"& objFolder.GetDetailsOf (strFileName, i).
Next

with two orders only get attributes 0 (name) and 21 (duration) for each file

Wscript.Echo 0 & vbtab & arrHeaders (0) _
& ":" & objFolder.GetDetailsOf (strFileName, 0) ".
Wscript.Echo 21 & vbtab & arrHeaders (21) _
& ":" & objFolder.GetDetailsOf (strFileName, 21) ".

Also, be sure to replace 'C:\Scripts' in the third line of the script with the full filename of your music collection.

I leave as an exercise for you how to add the loop necessary to deal with the situation of your music folder with subfolders.

Save the file as GetAttribs.vbs (or any other file you want, ending with .vbs name)

Open a command prompt window (start > run > cmd > OK)
Dough (click the icon in the upper left corner to get the menu, and then select Edition > paste) the following

cscript //nologo "C:\Documents and Settings\YOURUSERNAME\Desktop\test.vbs" > "C:\Documents and Settings\YOURUSERNAME\Desktop\output.txt".

Press enter

You can work on that actually look nice if you wish.

As always, there are several ways to achieve this.  I am far from a VBS or expert script, and I'm sure there are more elegant ways of doing things.

Tags: Windows

Similar Questions

  • How to open the file in a folder and to treat them with a program systematically

    Hello

    For my second question of the night.

    I wonder if there is a way to open all files in a folder, they pass through a vi and then add the output to a table or a spreadsheet? This would save me a lot of time and my wrists.

    Thank you

    Use folder list and automatic indexes on all the names of files in a loop FOR, processing each file in the list.

  • How to print the file name of the form?

    All the data that I use with the Designer is a set of specifications of equipment for sellers. For the purposes of monitoring, it would be nice to be able to place the name of the file that contains information of the equipment, on the form without having to type in it. These forms will be go to the wide electronically to various vendors who may or may not present new electronically, it would be nice to be able to establish a correlation between the response to the original.

    In the script (JavaScript) calculation of a text field, enter:

    this.rawValue = event.target.documentFileName;

    It updates once the form is saved.

    I hope this helps.

  • How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    How can I select the files in a folder with the help of a list with the files you want and after that rename only the files using another list with desired new names?

    I have only:
    D: / images (where are necessary + not need files)
    -a list with only the necessary files
    -a list with new names for the files needed
    Thank you.

    Hi Pustiu,

    Thanks for posting in the Microsoft Community.

    You want to know how to select the files in a folder using a list with the files you want and after that rename only the files using another list with desired new names.

    I would have you post your query in the TechNet forums because it caters to an audience of it professionals.

    Your query will be better addressed there.

    Check out the link-

    http://social.technet.Microsoft.com/forums/en-us/w7itprogeneral/threads

    We know if you need help. We will be happy to help you. We, at tender Microsoft to excellence.

    Thank you.

  • How to print all the files in a folder without having to open each one?

    Hello

    Can someone tell me how to print all the files in a folder? I often need to print multiple files in a folder and it would allow me to save a lot of time!

    Thank you!

    I've done some testing, and it seems that Windows 7 allows print several files when they are all the same type of file.  So, for example, you can select and print 15 Word documents, but not a Word document and a single PDF document.

    To work around this limitation, you can print each file type separately.  For example, to print PDF files in a folder:

    1. Type *. PDF in the search for top-right box.
    2. For 1-15 files, press on CTRL + A to select all the.
    3. For 16 or more files, select 15 of them (click on the first, SHIFT + click the last).
    4. Click any file, and then click print .
    5. Repeat steps 3 and 4 as needed.

    Boulder computer Maven
    Most Microsoft Valuable Professional

  • How can I print a copy of the files in a folder - not each file - just the list

    original title: list of print files

    How can I print a copy of the files in a folder - not each file - just the list? List of cases of printing

    How can I print a copy of the files in a folder - not each file - just the list?

    Karen's directory printer (free)

  • I need to print a list of the files in a folder

    I need to print a list of the files in a folder.

    How can I do this without resorting to either a print screenshot or typing everything on hand?

    Thank you.

    I need to print a list of the files in a folder.

    How can I do this without resorting to either a print screenshot or typing everything on hand?

    Thank you.

    Hello

    It is actually very easy to do. See the following article for steps add a menu item print directory for the context menu.

    How to add the feature print directory for files in Windows XP, Windows Vista or Windows 7

    Scroll down to the Windows 7 section and follow the instructions.

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP
  • I had a web page, I wanted to save so I printed the file. I found, later, in the directory Mozilla Beta, but as an "application/octet-stream". How can I get that back, open it, use it. I need

    There do not seem to be the options on how and where the files are save when you choose "Print to file" or how to get back them.

    Found this. Requires no installation. Please note that it is an unknown third party software.

    Printing to a file

    You can also try the search. It seems that there is some software and different ways.

  • HP Envy 700-216: how to use the files in my System Recovery folder on my desktop?

    I had to do a recovery of the system, due to damaged or corrupted Windows files. I backed up my files on 9 DVDs. System Recovery has restored the files in a folder on my desktop, but how do I use them?

    I'm mainly interested in restoring my data to my Quicken 2010 and possibly my 2015 AutoCad.

    You are welcome.

    The only answer I have for not being able to find the files is that they can not have been backed up.  Otherwise, they should be in the folder.  I have to be honest.  I did several laps, but never made a backup of my files.  I always keep my personal data, backups of Quicken, photos, etc. on the external USB hard drives.  If the data are very important to me, I have it on at least two disks.

  • How to delete the files from my HP ePrint app after download / print?

    Can someone tell me how to delete the files from my HP ePrint app after that I downloaded and printed. Thank you

    jmsandkds,

    I apologize for the confusion. Options you speak of "photos, web and file" are located on the phone somewhere, lets say you click files. When you click on files, it will search the phone for available files that are able to print the ePrint app. To the extent where they are on the phone, you will need to search for them via the search screen, connection to the computer, or some files are program specific and only available in this program to be read, edited, or deleted.

    I hope this helps.

  • The temporary internet files folder does not show all the files in this folder property while is more than 1 GB. How to delete temporary internet files. ?

    The temporary internet files folder does not show all the files in this folder property while is more than 1 GB. How to delete temporary internet files. ?  Disk space is very low around 1 & half GB. Please someone help resolve this issue. I am looking for the solution, but it did not have a specific.

    Thank you best regards &.

    Atul Zade.

    CCleaner is very useful to get rid of temporary files, you can get it here: http://www.piriform.com/ccleaner you can use it to clean your temporary files, but DO NOT use registry cleaning works, registry cleaning is mainly a useless effort that can cause more harm than good.

    John

  • How can I delete all the files in a folder with a back order?

    How can I delete all the files in a folder with a back order?

    rmdir

    To get options for rmdir, at the command prompt do: rmdir /? MS - MVP - Elephant Boy computers - don't panic!

  • Windows 7: put the files in a folder how to do this

    to put the files in a folder how to do this

    Hello

    As replied in the other thread we really need more information. What type of files in this folder.

    http://social.answers.Microsoft.com/forums/en-us/w7files/thread/1dd52f30-F909-4063-8355-b32e262d7495

    '' In general, '' you can use Start - computer or Windows Explorer to copy the files and put it
    those in the other folder.

    Techniques - click on a file - then hold Shift - click the last file in a series - all are highlighted
    -Right click on COPY - go where you want to put it-right click on the folder name or
    in the right pane, while in the folder - PASTE

    Click on a file and hold down the CTRL key, and then you can click on as many files non-connected (or connected)
    you like - then right click in the highlighted area - COPY - go where you want-
    Right-click on the name of the folder or in the right pane, while in the folder - PASTE

    ---------------------------------

    If this isn't the case, what you need to say and then use the files, folders, and programs that you use.

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • How to print a file of the 8 page to this page after 2 follow 7, then 6-3-4-5?

    How to print a file of the 8 page to this page after 2 follow 7, then 6-3-4-5?

    Use file > print booklet and go through the settings.

    It's perhaps a bit of trial and error - also don't forget to check your printer for duplex printing options and the size and orientation of the page too.

  • How to print the contents of a hard drive?

    Title: list of files on a specific drive.

    How to print the contents of a hard drive?  I would like to be able to remove the old files, but it would be easier if I could print the content rather than scroll through the file by file.

    Hello

    These should help:
     
    How to save and print a list of directory for a file and the folder of Vista (Windows 7 is the)
    same)
    http://www.Vistax64.com/tutorials/114593-file-folder-directory-list-print-save.html

    How to add view and directory of print in the context Menu in Vista and Windows 7 file
    http://www.Vistax64.com/tutorials/146031-context-menu-add-view-print-file-directory.html

    Use this free program which is great:

    KarenWare - printer - free directory
    http://www.KarenWare.com/PowerTools/ptdirprn.asp

    How to add the feature print directory for files in Windows XP, Windows Vista or Windows 7
    http://support.Microsoft.com/default.aspx/KB/321379

    I hope this helps.

Maybe you are looking for