# Windows 10: how to find .rootrc and set macro search path

**URL:** <https://root-forum.cern.ch/t/windows-10-how-to-find-rootrc-and-set-macro-search-path/57534>\
**Category:** Newbie\
**Created:** [December 14, 2023, 3:19am UTC](https://root-forum.cern.ch/t/windows-10-how-to-find-rootrc-and-set-macro-search-path/57534 "2023-12-14T03:19:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![izen](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/izen/32/35289_2.png) [@izen](https://root-forum.cern.ch/u/izen)\
**Post date:** [December 14, 2023, 3:19am UTC](https://root-forum.cern.ch/t/windows-10-how-to-find-rootrc-and-set-macro-search-path/57534/1 "2023-12-14T03:19:13Z")

</div>

_ROOT Version:_ 6  
_Platform:_ Windows 10  
_Compiler:_ Not Provided

* * *

I have installed Visual studio, Python and the latest root binary on my windows pc. A vanilla, out of the box installation. Root launches just fine, but where do I look for my .rootrc file, and how do I set the Linux equivalent of environment variables to change the default search path for macro? I can do on Linux, but it seems the installation documentation assumes I know where to look on Windows. NOT!

Is there a good handholding tutorial for someone with some root experience from MacOS and Linux who is a newb on Windows?

Thanks  
Joe

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [December 14, 2023, 7:54am UTC](https://root-forum.cern.ch/t/windows-10-how-to-find-rootrc-and-set-macro-search-path/57534/2 "2023-12-14T07:54:26Z")

</div>

Welcome to the ROOT forum!  
As on Linux, you can have a `.rootrc` file in the current (working) directory, or in your `%USERPROFILE%` (Linux `${HOME}` equivalent). and for the macro, ROOT looks in the current directory, in `$(ROOTSYS)/macros`and any PATH specified in `.rootrc`, as show below:

```plaintext
WinNT.*.Root.MacroPath: .;$(ROOTSYS)/macros

```
