# How can I change ScreenShotDir?

**URL:** <https://forums.unrealengine.com/t/how-can-i-change-screenshotdir/348865>\
**Category:** C++\
**Tags:** directory, unreal-engine, question\
**Created:** [February 27, 2016, 2:38pm UTC](https://forums.unrealengine.com/t/how-can-i-change-screenshotdir/348865 "2016-02-27T14:38:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4dd01b4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4dd01b4](https://forums.unrealengine.com/u/anonymous_user_d4dd01b4)\
**Post date:** [February 27, 2016, 2:38pm UTC](https://forums.unrealengine.com/t/how-can-i-change-screenshotdir/348865/1 "2016-02-27T14:38:52Z")

</div>

I changed paths.cpp  
FString FPaths::ScreenShotDir()  
{  
return FPaths::GameSavedDir() + TEXT(“Screenshots/”) + FPlatformProperties::PlatformName() + TEXT(“/”);  
}

to

FString FPaths::ScreenShotDir()  
{  
return FPaths::TEXT(“C:/Users/Public/Desktop/”) + TEXT(“Screenshots/”);  
}

but is not working in editor playing also pakaged game…  
how to apply changed paths.cpp in project?? or different way to Screenshot file in other directory?
