Root directory of an application

Posted by atuldalvi123 on 29-Jul-2016 02:20

How can we find root directory of an application using progress code ?

All Replies

Posted by tpavlovic on 29-Jul-2016 02:49

ASSIGN FILE-INFO:FILE-NAME = ".".

MESSAGE FILE-INFO:FULL-PATHNAME
   VIEW-AS ALERT-BOX INFO BUTTONS OK.

But sometimes it can get screwed up after SYSTEM-DIALOG GET-FILE/GET-DIR, even if RETURN-TO-START-DIR is specified.

Posted by oedev on 29-Jul-2016 02:50

If on windows, you could try this;

USING System.IO.*.

MESSAGE Directory:GetCurrentDirectory().

From here: https://msdn.microsoft.com/en-us/library/system.io.directory.getcurrentdirectory(v=vs.110).aspx

Posted by gus bjorklund on 29-Jul-2016 08:58

what do you mean by “root directory of an application”?

This thread is closed