[Lazarus] Getcurrentdir in Linux Mint

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] Getcurrentdir in Linux Mint

ldalton55
I need to know the function to get the current directory in Linux Mint

Sent from my iPhone

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Getcurrentdir in Linux Mint

Anthony Walter
pwd

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Getcurrentdir in Linux Mint

leledumbo
Administrator
In reply to this post by ldalton55
> I need to know the function to get the current directory in Linux Mint

http://www.freepascal.org/docs-html/rtl/sysutils/getcurrentdir.html
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Getcurrentdir in Linux Mint

Craps
hy ,

Try this:

...
var repertoire : string ;
...
begin
  repertoire := ExtractFileDir(Application.ExeName);
end ;




Le dimanche 08 novembre 2015 à 01:40 -0700, leledumbo a écrit :

> > I need to know the function to get the current directory in Linux Mint
>
> http://www.freepascal.org/docs-html/rtl/sysutils/getcurrentdir.html
>
>
>
>
> --
> View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Getcurrentdir-in-Linux-Mint-tp4045341p4045348.html
> Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.
>
> --
> _______________________________________________
> Lazarus mailing list
> [hidden email]
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus



--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Getcurrentdir in Linux Mint

Anthony Walter
RunCommand('pwd', S);

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Getcurrentdir in Linux Mint

Graeme Geldenhuys-3
On 2015-11-08 13:31, Anthony Walter wrote:
> RunCommand('pwd', S);


Why not simply FPC's GetCurrentDir() function.

  http://www.freepascal.org/docs-html/rtl/sysutils/getcurrentdir.html


Regards,
  - Graeme -

--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

My public PGP key:  http://tinyurl.com/graeme-pgp

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] Getcurrentdir in Linux Mint

wkitty42
In reply to this post by Craps
On 11/08/2015 06:55 AM, fred wrote:
> begin
>    repertoire := ExtractFileDir(Application.ExeName);
> end ;

that will get you the application's directory which may not be the user's
current directory...

--
  NOTE: No off-list assistance is given without prior approval.
        *Please keep mailing list traffic on the list* unless
        private contact is specifically requested and granted.

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus