# Create file in the directory

**URL:** https://discussion.mcebuddy2x.com/t/create-file-in-the-directory/3026
**Category:** Metadata and Renaming
**Created:** [August 11, 2019, 8:49pm UTC](https://discussion.mcebuddy2x.com/t/create-file-in-the-directory/3026 "2019-08-11T20:49:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Daniel\_McIvor](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/daniel_mcivor/32/544_2.png) [@Daniel\_McIvor](https://discussion.mcebuddy2x.com/u/Daniel_McIvor)
#### Post date: [August 11, 2019, 8:49pm UTC](https://discussion.mcebuddy2x.com/t/create-file-in-the-directory/3026/1 "2019-08-11T20:49:19Z")

</div>

Hi,

Is it possible to create a file inside the same directory of the video file once MCEbuddy has renamed it?  
The reason I ask is that I use Emby and I don’t want the conversions to be added to the library.

The way around this is to create a .ignore file within the folder.

> **[Excluding Files & Folders](https://github.com/MediaBrowser/Wiki/wiki/Excluding-files-&-folders)**
>
> The Emby Wiki. Contribute to MediaBrowser/Wiki development by creating an account on GitHub.

Thanks in advance  
Daniel

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [August 12, 2019, 8:14pm UTC](https://discussion.mcebuddy2x.com/t/create-file-in-the-directory/3026/2 "2019-08-12T20:14:49Z")

</div>

Try using `PostCustomCommand` and run a batch file there which creates the _.ignore_ file.

> [@MCEBuddy - Advanced Settings, Commands and Tweaking](https://discussion.mcebuddy2x.com/t/mcebuddy-advanced-settings-commands-and-tweaking/30#customcommands):
>
> Advanced concepts to use MCEBuddy Refer to the [MCEBuddy Profiles Basics](https://discussion.mcebuddy2x.com/t/27) page to learn about basic Profiles creation NOTE: Advanced Conversion Parameters apply to profiles.conf Do NOT edit mcebuddy.conf. As of v2.3.13 ALL Advanced Configuration Parameters (except FFmpegBackupRemux) in mcebuddy.conf can be accessed through the GUI, Settings → Expert Settings page DO NOT REPLACE THE NEW CONFIGURATION FILES WITH THE OLD FILES AS PARAMETERS IN THE NEW FILES ARE ADDED/UPDATED WITH EACH RELEASE. …

---

<div class="post-metadata">

### Author: ![Daniel\_McIvor](https://discussion.mcebuddy2x.com/user_avatar/discussion.mcebuddy2x.com/daniel_mcivor/32/544_2.png) [@Daniel\_McIvor](https://discussion.mcebuddy2x.com/u/Daniel_McIvor)
#### Post date: [August 13, 2019, 7:48am UTC](https://discussion.mcebuddy2x.com/t/create-file-in-the-directory/3026/3 "2019-08-13T07:48:35Z")

</div>

Thank you.

I have added the custom command to my profile pointing to a very basic .bat file.  
Next thing to work out is how to create this file in the directory that MCEbuddy is moving files to.

Any ideas on the best way to do this?

All that I have in the script is the following:

@echo off

echo .\>\> .ignore

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [August 13, 2019, 7:10pm UTC](https://discussion.mcebuddy2x.com/t/create-file-in-the-directory/3026/4 "2019-08-13T19:10:40Z")

</div>

See the same link, there are loads of custom variables you can use and pass to your batch file regarding converted file paths, names etc.
