# How can I add a file to dvc and generate its dvc with another name and location

**URL:** <https://discuss.dvc.org/t/how-can-i-add-a-file-to-dvc-and-generate-its-dvc-with-another-name-and-location/2336>\
**Category:** Questions\
**Created:** [December 2, 2024, 7:22am UTC](https://discuss.dvc.org/t/how-can-i-add-a-file-to-dvc-and-generate-its-dvc-with-another-name-and-location/2336 "2024-12-02T07:22:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aliaga](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Aliaga](https://discuss.dvc.org/u/Aliaga)\
**Post date:** [December 2, 2024, 7:22am UTC](https://discuss.dvc.org/t/how-can-i-add-a-file-to-dvc-and-generate-its-dvc-with-another-name-and-location/2336/1 "2024-12-02T07:22:51Z")

</div>

As the title says

If I have a file named `thefile.something` in the folder `data` how can I add that to dvc managed files but instead of generating a dvc file of the same name, generate a file `output.dvc` in the folder `dvcfiles`?

---

<div class="post-metadata">

**Author:** ![skshetry](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@skshetry](https://discuss.dvc.org/u/skshetry)\
**Post date:** [December 2, 2024, 8:39am UTC](https://discuss.dvc.org/t/how-can-i-add-a-file-to-dvc-and-generate-its-dvc-with-another-name-and-location/2336/2 "2024-12-02T08:39:19Z")

</div>

This is something that we have stopped supporting. You’d have to do it manually if you want to keep them together.
