v4v4n Posted February 3, 2013 Share 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 Link to comment Share on other sites More sharing options...
mierlp Posted February 3, 2013 Share 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 Link to comment Share on other sites More sharing options...
v4v4n Posted February 5, 2013 Author Share Posted February 5, 2013 Thanks...it works... Quote Link to comment Share on other sites More sharing options...
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.