Change data location
xmha97 opened this issue · 2 comments
xmha97 commented
How I can change location of the .notes
folder?
Mikescher commented
See AppSettings.cs:
public static readonly string PATH_SETTINGS = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"noteapp.config");
public static readonly string PATH_SCROLLCACHE = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"noteapp.scrollcache.config");
public static readonly string PATH_GCCACHE = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"noteapp.gitcleancache.config");
public static readonly string PATH_HIERARCHYCACHE = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"noteapp.hierarchycache.config");
public static readonly string PATH_LOCALDB = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @".notes");
public static readonly string APPNAME_REG = "AlephNoteApp_{0:N}";
public static readonly string PATH_EXECUTABLE = GetExePath();
Currently the .notes
folder is always in the AppDomain.CurrentDomain.BaseDirectory
you could try starting AlephNote from a different directory but generally you should just move the application to where you want your data to be
xmha97 commented
I want to change paths using the command line.
AlephNote.exe -datapath="..\..\MyNotes"