![]() |
|
|
grep unix.com with google
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Our Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Windows & DOS: Issues & Discussions All Windows and DOS questions should go here as well. Discuss UNIX to Windows (Desktop or Server) here! |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
Need solution for Bat FIle using FOR Cycle
Hi people.
Don't know if you could help me, but here it goes anyway. I need to search for some directories, and if i for any file founded a must run another Bat file. Can this be done in DOS ? Thanks in advance |
|
||||
|
This guy: How to write a DOS batch file to loop through files Jim 2.0’s Blog Has written a pretty good guide to doing this. I found I got the most useful search output using: Code:
dir c:\<filename> /B /P /S (You can specify wildcards in <filename>) |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| wildcard in a if cycle | elionba82 | Shell Programming and Scripting | 2 | 04-18-2008 09:25 AM |
| CEP vs the hype cycle | Linux Bot | Complex Event Processing RSS News | 0 | 02-05-2008 06:20 PM |
| For cycle | nagomes | Shell Programming and Scripting | 3 | 06-08-2007 06:48 AM |
| Stopping a command during the cycle | chapmana | UNIX for Dummies Questions & Answers | 7 | 11-25-2006 05:08 PM |
| shell cycle | mape | Shell Programming and Scripting | 2 | 07-14-2006 04:12 AM |