Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Linux and GetCurrentDirectory
Re: Linux and GetCurrentDirectory [message #33882 is a reply to message #33879] Wed, 21 September 2011 08:54 Go to previous messageGo to previous message
forlano is currently offline  forlano
Messages: 1213
Registered: March 2006
Location: Italy
Senior Contributor
dolik.rce wrote on Tue, 20 September 2011 23:54

GetCurrentDirectory() returns, as the name says, the current directory, which on most non-windows systems is the directory from where the binary was executed, non where it resides. To obtain the position of the binary, there is GetExeFilePath().

Best regards,
Honza

PS: Also, the current directory can change while the program is running.


Ops... Thank you for this precious info!
It means GetExeFilePath() is what I need for both OS when the position of the executable is important to reach other files.

The change of current directory may happen even under windows?

Luigi
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: read/write to /dev/rtp is happening .. but a small problem
Next Topic: Serialize a VectorMap
Goto Forum:
  


Current Time: Sat Aug 02 21:36:10 CEST 2025

Total time taken to generate the page: 0.07871 seconds