I am trying to use Windows 10 Task Scheduler to run an MFC app after login.
No problem as far as execution is concerned, but I am facing a problem in reading files using relative paths.
Is there something different about Task Scheduler execution than normal execution?
Or, is there another solution to set the startup path in the Eshell.exe shell?
For example:
CIniFile OptionINI(_T(".\\userOption.ini"), 1024);
// File not found
CIniFile OptionINI(_T("c:\\my\\userOption.ini"), 1024);
// File found successfully