Jump to content

Run batch Automatically


_27
 Share

Recommended Posts

Hello There,

I have one question wish to find help here.

First, i would like to go through a scenario of the things am doing then will go for the question.

- I have application which has functionality to write a file (txt file) from database into a location in a remote server which is windows platform. This step is done successfully.

- We schedule a batch to be run (e.g. every 5 mnts) to do some other jobs based on the written file.

My question is:

Is there a way that this batch can be run automatically after writing a file.

Appreciate any help.

Best Regards,

Link to comment
Share on other sites

Hi there. :welcomewf:

You should be able to carry out the operation you require from within the Windows environment without need for further 3rd party software.

Consider using, - "Task Scheduler"

Here are a couple of links to tutorials on Task scheduler in Windows:

Scheduler 1

Scheduler 2

Scheduler 3

If the above links do not quite fit the bill for the operation you are carrying out with your .bat file, a search on Google for "Task Scheduler + Batch File" will probably turn up something nearer the mark.

John. :flowers:

Link to comment
Share on other sites

I have deliberately chosen the third link to be a little more complex, as it gives you full rein to be able to use the command line in Task scheduler to be able to choose commands within the .bat file.

As the man says, - "Get creative" :)

Hope all works out well.

John.

Link to comment
Share on other sites

Oh ! And dont forget that if ever you get into a situation where a .bat file causes problems within automation you can always convert it to .exe and squeeze some extra usage out of it.

See HERE

If "Windows Task Scheduler" isn't to your liking there is plenty of Macro/Automation software available. - A lot of it free. See HERE

In the past I've put together some pretty neat automated stuff to do Nana's toast in the mornings. :blink: ;)

John.

Link to comment
Share on other sites

Oh ! And dont forget that if ever you get into a situation where a .bat file causes problems within automation you can always convert it to .exe and squeeze some extra usage out of it.

See HERE

If "Windows Task Scheduler" isn't to your liking there is plenty of Macro/Automation software available. - A lot of it free. See HERE

In the past I've put together some pretty neat automated stuff to do Nana's toast in the mornings. :blink: ;)

John.

Many Thanks John, i will go through what you have suggested and let you know if any would help us in our task.

Thanks again :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy