# Specify output dir and output filename within the test case

**URL:** <https://forum.robotframework.org/t/specify-output-dir-and-output-filename-within-the-test-case/6642>\
**Category:** Robot Framework\
**Created:** [11 January 2024 14:45 UTC](https://forum.robotframework.org/t/specify-output-dir-and-output-filename-within-the-test-case/6642 "2024-01-11T14:45:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndersRask](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@AndersRask](https://forum.robotframework.org/u/AndersRask)\
**Post date:** [11 January 2024 14:45 UTC](https://forum.robotframework.org/t/specify-output-dir-and-output-filename-within-the-test-case/6642/1 "2024-01-11T14:45:43Z")

</div>

Hi

When running test I’m using the command line options “–outputdir” and “–output” to redirect the output files to a specific diretory with a specific file name.

Is there an option to specify this within the .robot file? Instead of using the cmd line options at every run?

Br,  
Anders Rask
