working place of exe?

Byak@

Active Member
Licensed User
how can i get a working place (working folder) of my exe?
apppath return a path to exe, not working place. sometimes it is different (for example when another program run my program)
 

Byak@

Active Member
Licensed User
in c# i can use System.IO.Directory.GetCurrentDirectory()
what about b4ppc?
 

Byak@

Active Member
Licensed User
ok, this works fine
obj.New1(False)
obj.CreateNew("System.IO.Directory"&obj.System_Mscorlib)
s=obj.RunMethod("GetCurrentDirectory")
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…