Batch File Help

G

Guest

I am trying to create a batch file that will run from Scheduled Tasks. We
have a Fox Pro database that is running on several workstations and the users
forget to close it when they go home for the day. This causes problems when
the files are backed up overnight.

I tried this batch file.

@echo off
taskkill /im program.exe /f

This worked, but I don't want to force the database close.

When I remove the /f the database application asks me if want to close the
program Yes/No.

My question is there a way to respond Yes to the prompt in a batch file?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top