# Question about creating macros

**URL:** <https://root-forum.cern.ch/t/question-about-creating-macros/55502>\
**Category:** Newbie\
**Tags:** root\
**Created:** [June 30, 2023, 5:33pm UTC](https://root-forum.cern.ch/t/question-about-creating-macros/55502 "2023-06-30T17:33:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lapan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/l/e56c9b/32.png) [@lapan](https://root-forum.cern.ch/u/lapan)\
**Post date:** [June 30, 2023, 5:33pm UTC](https://root-forum.cern.ch/t/question-about-creating-macros/55502/1 "2023-06-30T17:33:58Z")

</div>

I am reading ROOT Primer from official cite.  
In paragraph ROOT as function plotter slits.C macro is used , when I try to type `root slits.C` in the shell, it says no such file found

> Warning in TApplication::GetOptions: macro slits.C not found  
> root: unrecognized option ‘slits.C’  
> Try ‘root --help’ for more information.

On the same page, a link to the github with the macros used in this tutorial was attached, I found the necessary file, but I don’t know where to save it so that ROOT finds it

---

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [July 2, 2023, 11:10am UTC](https://root-forum.cern.ch/t/question-about-creating-macros/55502/2 "2023-07-02T11:10:37Z")

</div>

Run ROOT from the same folder where you put the macros, any folder in which you have read and write permissions.
