v4v4n Posted February 3, 2013 Posted February 3, 2013 hello i tried to get current application directory using command ExtractFilePath(Application.ExeName). i wish to read a config file (.ini file). on vcl mode it works fine the app point it to it's binary location. eg D:\project\binary\ but on web mode it point to different path D:\xampp\apache\bin how do i get the location of it's current binary file on web mode ? thanks in advance Quote
mierlp Posted February 3, 2013 Posted February 3, 2013 Hi You can use in the mainModule.OnCreate event the code : IniFile := TIniFile.Create(uniServerModule.StartPath+'config.ini'); regards Peter Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.