# May I run python script in Fmod studio?

**URL:** <https://qa.fmod.com/t/may-i-run-python-script-in-fmod-studio/20755>\
**Category:** FMOD Studio\
**Created:** [October 10, 2023, 11:07am UTC](https://qa.fmod.com/t/may-i-run-python-script-in-fmod-studio/20755 "2023-10-10T11:07:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenken0615](https://avatars.discourse-cdn.com/v4/letter/k/e36b37/32.png) [@Kenken0615](https://qa.fmod.com/u/Kenken0615)\
**Post date:** [October 10, 2023, 11:07am UTC](https://qa.fmod.com/t/may-i-run-python-script-in-fmod-studio/20755/1 "2023-10-10T11:07:19Z")

</div>

I am trying to run a python script after building. And i am trying to write a bat file which will execute python script, but it cannot work  
code like:

```auto
studio.system.start(projectPath + "execute_python.bat", {timeout: 20000})

```

My python file is aim to copy built files to somewhere else, and make sure some banks will be deleted if it is no longer used.

---

<div class="post-metadata">

**Author:** ![Leah\_FMOD](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/leah_fmod/32/3685_2.png) [@Leah\_FMOD](https://qa.fmod.com/u/Leah_FMOD)\
**Post date:** [October 12, 2023, 3:05am UTC](https://qa.fmod.com/t/may-i-run-python-script-in-fmod-studio/20755/2 "2023-10-12T03:05:23Z")

</div>

Hi,

I was able to run a simple python script via a .bat file I started in Studio without any issue. It is however worth noting that FMOD Studio will not open a command prompt window when you start a process - if you want to see the output, you can do the following for `studio.system.start()`:

```auto
var process = studio.system.start(projectPath + "execute_python.bat", {timeout: 20000});
console.log(process.standardOutput);

```

Alternatively, if you’re using `studio.system.startAsync()` you can do this instead:

```auto
var process = studio.system.startAsync(projectPath + "execute_python.bat", {});
console.log(process.readAllStandardOutput());

```

If this doesn’t solve your problem, what version of FMOD Studio are you using?
