Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using findstr with IF statement

Status
Not open for further replies.

jontemyra

IS-IT--Management
Jun 16, 2009
1
SE
Hi

Would your input on this, would like to run a command with the findstr tool.

Like this

findstr /c:"AHQ07385,Meijera" /d:"c:\Documents and Settings\adm_kronad\Desktop\1660\Dirlist.txt"

This should be surronded with a IF statement saying, IF finding keywords AHQ07385,Meijera Then delete xx files

Could this work?

/ Jonas
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top