-
March 7th, 2004, 06:03 PM
#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.
-
March 8th, 2004, 08:26 AM
#2
Registered User
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!
-
March 8th, 2004, 08:56 AM
#3
Registered User
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
-
By qwicker in forum Programming And Web Design
Replies: 6
Last Post: January 7th, 2004, 12:54 PM
-
By eboyjones in forum Hard Drive/IDE/SCSI Drivers
Replies: 7
Last Post: December 22nd, 2001, 05:00 AM
-
By derjackson in forum Tech-To-Tech
Replies: 3
Last Post: August 28th, 2001, 09:46 AM
-
By Lt. Columbo (formally Joevegany@..) in forum DOS
Replies: 28
Last Post: August 1st, 2001, 01:48 PM
-
By drewber in forum Tech-To-Tech
Replies: 0
Last Post: August 30th, 2000, 05:03 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|
Bookmarks