[Win] autostart and working directory Topic is solved

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

[Win] autostart and working directory

Post by MoonKid »

My application is start with windows-autorun (reg-key RUN).

The full path is
C:\Program Files\wxCron\wxCron.exe

My problem is that the working directory (::wxGetCwd()) is C:\Windows\system32.

How can I solve this problem?
catalin
Moderator
Moderator
Posts: 1618
Joined: Wed Nov 12, 2008 7:23 am
Location: Romania

Post by catalin »

Code: Select all

wxFileName::SetCwd(wxStandardPaths::Get().GetExecutablePath().BeforeLast(wxFileName::GetPathSeparator()));
Post Reply