Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Batch file - Help?

Options
  • 25-03-2005 1:11pm
    #1
    Closed Accounts Posts: 12


    Hi

    I want to automate the closing of a particular application. I want to create it as a .bat file and then schedule it to close the application during the day.

    I'm not familiar with DOS commands and would be grateful if someone could copy the commands which I can then modify.

    Many thanks in advance

    Elaine


Comments

  • Closed Accounts Posts: 2,025 ✭✭✭zod


    search for kill.exe - resouce kit utility
    download and throw in system32

    when the program is running look at the processes tab in task manager and take note of the exe.. eg winword.exe for example

    create a txt file using notepad
    contents of which should read
    kill winword.exe ( swop for your exe name)

    call the file stopprogram - rename to stopprogram.cmd or .bat
    test by doubleclicking

    Used scheduled tasks to run at paticular time

    note kill will kill the program without saving any info


  • Closed Accounts Posts: 12 elainec


    Thanks Zod,

    I ended up using the taskkill command and it worked a treat - Batch file created, tested and scheduled to run.

    Rgds

    Elaine


Advertisement