# How to run processing sketch automatic when my PC is Shuting Up

**URL:** <https://discourse.processing.org/t/how-to-run-processing-sketch-automatic-when-my-pc-is-shuting-up/12640>\
**Category:** Processing\
**Created:** [July 10, 2019, 7:28am UTC](https://discourse.processing.org/t/how-to-run-processing-sketch-automatic-when-my-pc-is-shuting-up/12640 "2019-07-10T07:28:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_nish](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/the_nish/32/5634_2.png) [@The\_nish](https://discourse.processing.org/u/The_nish)\
**Post date:** [July 10, 2019, 7:28am UTC](https://discourse.processing.org/t/how-to-run-processing-sketch-automatic-when-my-pc-is-shuting-up/12640/1 "2019-07-10T07:28:49Z")

</div>

i want to run my processing sketch automatic when i open my PC. how it is possible and what method should i use. please share Your answer which will very help full for me.

or

can i use batch file for this . if this possible please share batch file information.

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [July 10, 2019, 7:36am UTC](https://discourse.processing.org/t/how-to-run-processing-sketch-automatic-when-my-pc-is-shuting-up/12640/2 "2019-07-10T07:36:26Z")

</div>

besides processing is a graphic app it also has a command line start  
[Command Line · processing/processing Wiki · GitHub](https://github.com/processing/processing/wiki/Command-Line) ,

also for both way to start processing,  
to do a

> autostart at boot

might depend very much on the OS.

---

<div class="post-metadata">

**Author:** ![Andy\_Front](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/andy_front/32/6278_2.png) [@Andy\_Front](https://discourse.processing.org/u/Andy_Front)\
**Post date:** [July 10, 2019, 10:50am UTC](https://discourse.processing.org/t/how-to-run-processing-sketch-automatic-when-my-pc-is-shuting-up/12640/3 "2019-07-10T10:50:09Z")

</div>

Assuming your OS is windows, it’s possible to use the Task Scheduler to automatically start a batch file.

This would be done by making a batch file according to the information in the link by kll and then making a “basic task” that runs on startup and executes this file.
