There’s a couple ways to get around this problem:
1. You can use windows system variables instead of hard-coding the path into your app. For example: Save my file to “%HOMEPATH%\My Documents\MyFile.txt”
2. Prompt the user where they want to save the file and save that in a configuration/ini file in your app’s folder.
3. Save the file to your app’s folder by using the .Net variable Application.StartupPath, which refers to your application’s folder.