# Choosing save path for vtk files

**URL:** <https://community.freefem.org/t/choosing-save-path-for-vtk-files/2867>\
**Category:** General Discussion\
**Created:** [January 6, 2024, 10:40am UTC](https://community.freefem.org/t/choosing-save-path-for-vtk-files/2867 "2024-01-06T10:40:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![OTTAVIO.C.T.UNISA](https://avatars.discourse-cdn.com/v4/letter/o/2bfe46/32.png) [@OTTAVIO.C.T.UNISA](https://community.freefem.org/u/OTTAVIO.C.T.UNISA)\
**Post date:** [January 6, 2024, 10:40am UTC](https://community.freefem.org/t/choosing-save-path-for-vtk-files/2867/1 "2024-01-06T10:40:36Z")

</div>

Good morning everyone. I have been practising with FreeFem++ (Windows 11) for a couple of months and now i’m catching up with expert tutorial 2022 made by Professor Pierre Joliviet in order to learn parallel computing. I have some issues with “savevtk” function. When I launch the script with mpiexec, the vtu files are saved in the same directory of mpiexec. Is it possible to choose an arbitrary save path for the savevtk function? Because i’d like to save this output in a folder on the desktop, for example.  
Sorry for such a naive question and thanks to everyone for the help.  
Best regards  
OCT

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [January 6, 2024, 5:59pm UTC](https://community.freefem.org/t/choosing-save-path-for-vtk-files/2867/2 "2024-01-06T17:59:01Z")

</div>

Yes, you can use `savevtk("some_path/name_of_file.vtu", ...)`.

---

<div class="post-metadata">

**Author:** ![OTTAVIO.C.T.UNISA](https://avatars.discourse-cdn.com/v4/letter/o/2bfe46/32.png) [@OTTAVIO.C.T.UNISA](https://community.freefem.org/u/OTTAVIO.C.T.UNISA)\
**Post date:** [January 6, 2024, 6:24pm UTC](https://community.freefem.org/t/choosing-save-path-for-vtk-files/2867/3 "2024-01-06T18:24:40Z")

</div>

It seems not to work because it recognises the entire path as the filename. I wrote the line this way:  
savevtk(“C:\Users\Utente\Desktop\tirocinio e tesi portatile\free fem\esercizi freefem\decomposition\pierre7\rank.vtu”,Th, outputForParaview);  
I basically copied and pasted the path before the filename that is rank.vtu.  
Or even just  
savevtk(“C:\Users\Utente\Desktop\rank.vtu”,Th, outputForParaview);  
does not work as well.  
Where am I wrong?  
Thank you

---

<div class="post-metadata">

**Author:** ![OTTAVIO.C.T.UNISA](https://avatars.discourse-cdn.com/v4/letter/o/2bfe46/32.png) [@OTTAVIO.C.T.UNISA](https://community.freefem.org/u/OTTAVIO.C.T.UNISA)\
**Post date:** [January 6, 2024, 6:33pm UTC](https://community.freefem.org/t/choosing-save-path-for-vtk-files/2867/4 "2024-01-06T18:33:37Z")

</div>

Ok it’s just about using “/” and not backslash when writing the path.  
So I write  
savevtk(“C:/Users/Utente/Desktop/rank.vtu”,Th, outputForParaview);  
and it works  
Thanks for the help

---

<div class="post-metadata">

**Author:** ![prj](https://avatars.discourse-cdn.com/v4/letter/p/ecae2f/32.png) [@prj](https://community.freefem.org/u/prj)\
**Post date:** [January 6, 2024, 6:37pm UTC](https://community.freefem.org/t/choosing-save-path-for-vtk-files/2867/5 "2024-01-06T18:37:51Z")

</div>

Yes, handling paths in Windows can be tricky…
