Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

actual path as string

Status
Not open for further replies.

zigular

Technical User
Jun 29, 2004
18
DE
hi!

how can i get the actual path as a string whereever i want to know in my program?

i need the string just to point out a file to write sth in the registry. that means there will be NO file opened, and i have also NO variable for a file. i need JUST the actual path from where i start my application.


ich brauche den pfad plus dahinter befindliche datei lediglich fuer einen eintrag in der registry. also es wird KEIN file geoeffnet, und demzufolge gibt es auch KEINE variable etc. ich brauche NUR der aktuellen string.

thanx and cheers
h.
 
You could also use GetModuleFileName (GetModuleFileNameEx) in conjunction with PathRemoveFileSpec.
 
oh dear, he didn't know the _getcwd-method! which include do I need? I could find anything about it on msdn and the inside book.

hilmar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top