cmd commands
Results 1 to 3 of 3

Thread: cmd commands

  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    1

    cmd commands

    when i start a command (also called DOS prompt) how can i know how many files have the word "disk" in them? What would be the commands for that? thanks.

  2. #2
    Registered User CeeBee's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    2,494
    Quote Originally Posted by shock1
    when i start a command (also called DOS prompt) how can i know how many files have the word "disk" in them? What would be the commands for that? thanks.
    I don't think you can do it directly. It would be much easier to make a VB script to do it. However, you can generate a list of matching files with the following command:
    for /r [optional_path] %i in (*disk*.*) do echo %i>>filelist.txt
    If you are running it from a batch file rather from a command prompt replace %i with %%i
    Protected by Glock. Don't mess with me!

  3. #3
    Registered User Zonie's Avatar
    Join Date
    Apr 2001
    Location
    Phoenix, Arizona
    Posts
    1,461
    Quote Originally Posted by shock1
    when i start a command (also called DOS prompt) how can i know how many files have the word "disk" in them? What would be the commands for that? thanks.
    Type in "Dir *disk*.* /s /w" This will give you a listing of all files with disk in them. Cheers

Similar Threads

  1. CMD commands
    By qwicker in forum Programming And Web Design
    Replies: 6
    Last Post: January 7th, 2004, 12:54 PM
  2. format commands
    By eboyjones in forum Hard Drive/IDE/SCSI Drivers
    Replies: 7
    Last Post: December 22nd, 2001, 05:00 AM
  3. Reappearing run= commands
    By derjackson in forum Tech-To-Tech
    Replies: 3
    Last Post: August 28th, 2001, 09:46 AM
  4. Most used DOS commands on the job?
    By Lt. Columbo (formally Joevegany@..) in forum DOS
    Replies: 28
    Last Post: August 1st, 2001, 01:48 PM
  5. undocumented win9x commands
    By drewber in forum Tech-To-Tech
    Replies: 0
    Last Post: August 30th, 2000, 05:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •