# Input file name to output file name

**URL:** <https://forum.knime.com/t/input-file-name-to-output-file-name/48532>\
**Category:** KNIME Analytics Platform\
**Tags:** workflow\
**Created:** [November 1, 2022, 1:17pm UTC](https://forum.knime.com/t/input-file-name-to-output-file-name/48532 "2022-11-01T13:17:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [November 1, 2022, 2:36pm UTC](https://forum.knime.com/t/input-file-name-to-output-file-name/48532/2 "2022-11-01T14:36:15Z")

</div>

@johnnybasha you can [capture the file name](https://docs.knime.com/latest/analytics_platform_flow_control_guide/index.html#img-flow-variables-tab-dialog) given (or it might come as an [already existing Path variable](https://forum.knime.com/t/write-multiple-csv-file-to-a-loop/44989/2)) maybe from a [List Files/Folders – KNIME Hub](https://kni.me/n/UhVxxmmRQ6ZmuPt7) node.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/4/5/451db467e9eb71bdc6ecd3a65d7b6472e500788b.png)

You can separate the File Nam from the extension so you might create a new file name with a different extension in a Java Edit node or directly create a new Path variable.

![image](https://forum-cdn.knime.com/uploads/default/original/3X/d/6/d68c7e3ee761007564d9b62f24384c39607eff8e.png)

> **[Extract File Name and add new extension to Path variable – mlauber71](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_path_name_file~EWlQgy0R4DeQuFg_)**
>
> Extract File Name and add new extension to Path variable

[kn\_example\_path\_name\_file.knwf](https://forum.knime.com/uploads/short-url/5nwgU6pHUMqnEpAKbi7iZXYOyiv.knwf) (34.2 KB)

---

_[View the full topic](https://forum.knime.com/t/input-file-name-to-output-file-name/48532)._
