Please register or login. There are 0 registered and 1176 anonymous users currently online. Current bandwidth usage: 326.30 kbit/s December 13 - 09:54am EST 
Hardware Analysis
      
Forums Product Prices
  Contents 
 
 

  Latest Topics 
 

More >>
 

    
 
 

  You Are Here: 
 
/ Forums / Windows 7 /
 

  Windows 7 DOS switches Help Please 
 
 Author 
 Date Written 
 Tools 
binar Jun 09, 2012, 07:40pm EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List Replies: 3 - Views: 2483
Fellow Forum Members,
In my Windows 7 Command Prompt window I'm using the DOS command shown below to print a list of all my wedding video clips and associated subdirectories:

C:\Root\Wedding_Videos>dir /s>My_Video_List.txt

This command generates a text file with these details: File Name, File Size, and Date. The missing detail is for LENGTH which displays in the Windows Explorer window as " 00:33:04 "

What switch do I need to use in my DOS command so that the LENGTH detail is included in my text list? I have GOOGLED this and I can't find any DOS switch that will activate the LENGTH detail. Any help will be greatly appreciated. Thanks


Want to enjoy fewer advertisements and more features? Click here to become a Hardware Analysis registered user.
binar Jun 09, 2012, 07:53pm EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List  
>> Re: Windows 7 DOS switches Help Please
Just a followup.

If including the LENGTH detail can't be done using the DOS Command prompt window I would be open to any suggestions for a FREE application that would let me create a text file of all files in a subdirectories with these details:
File Name, Date, File Size, Length

Dr. Peaceful Jun 11, 2012, 12:18pm EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List

Edited: Jun 11, 2012, 12:23pm EDT

 
>> Re: Windows 7 DOS switches Help Please
What you're looking for is one of the extended file properties, called "Duration". Here is an explanation from M$. http://technet.microsoft.com/en-us/library/ee176615.aspx

Note that the link above is old. For Win7, there are hundreds of extended file properties! That's not all, they've moved the index number of the properties as well. "Duration" now has an index of 36. You can find that out by running the VBS script in the link above, but edit the for loop to go, say from 0 to 100.

As far as I know, you can't obtain extended file properties using batch commands. You can use VBS scripts or Powershell scripts. And it won't be a one liner! You need to declare some objects, for loops, and use the GetDetailsOf (filename, index) function.

john albrich Jun 11, 2012, 06:19pm EDT Reply - Quote - Report Abuse
Private Message - Add to Buddy List

Edited: Jun 11, 2012, 06:39pm EDT

 
>> Re: Windows 7 DOS switches Help Please
.
You might also try looking at some of the alternatives to Windows Explorer...LIKE Explorer2, XYplorer, etc. The free (and even the non-free) versions may or may not be able to provide this specific datum in Win7. But, these kinds of Explorer-alternative programs typically provide a LOT more flexibility and power than Windows Explorer provides so the chances are good that one may meet your needs.

All I'm doing here is letting you know that alternatives to Explorer exist. You will need to do the detailed research to see if any meet your needs.

Also, features and "freeware" version availability may have changed since I last looked at these programs.

One example:
http://zabkat.com/x2lite.htm
http://zabkat.com/comparison.htm (comparison-WinExplorer v. X2Lite v. X2Pro)
Windows All (32 & 64 bit) 9x/NT/2000/XP/Vista/7
v2.1.0.2 (31 May 2012)


I have no personal or financial interest in any of these programs, and I haven't looked at Explorer2 in any detail in a long time.


edit to add
Note: The EULA of virtually every one of the freeware versions of these alternatives tends to limit the free versions to NON-commercial users (e.g. usually home and student users)


Write a Reply >>


 

    
 
 

  Topic Tools 
 
RSS UpdatesRSS Updates
 

  Related Articles 
 
 

  Newsletter 
 
A weekly newsletter featuring an editorial and a roundup of the latest articles, news and other interesting topics.

Please enter your email address below and click Subscribe.