Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Run the batch file if any .txt files exists?  (Read 2557 times)

0 Members and 1 Guest are viewing this topic.

kishorei

    Topic Starter


    Rookie

    Run the batch file if any .txt files exists?
    « on: April 24, 2009, 01:23:10 AM »
    I have some .txt files in C:\temp.
    I want to run the bacth file if any .txt files exists. Other wise wont.
    How to do?

    Dusty



      Egghead

    • I could if she would, but she won't so I don't.
    • Thanked: 75
    • Experience: Beginner
    • OS: Windows XP
    Re: Run the batch file if any .txt files exists?
    « Reply #1 on: April 24, 2009, 02:08:56 AM »
    If not exist c:\temp\*.txt goto end

    ...Commands go here

    :end

    One good deed is worth more than a year of good intentions.