Executable file location

88 views
Skip to first unread message

hherrera

unread,
Sep 9, 2021, 3:26:28 PM9/9/21
to Harbour Users
Hi Friends!!

What function can I use to determine the path where the running program is located?
using Harbor or C borland.

Thanks

Henry Herrera

Jacek Kubica

unread,
Sep 9, 2021, 3:48:50 PM9/9/21
to harbou...@googlegroups.com

Try hb_dirBase()

 

Regards

Jacek Kubica

--
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users

---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/harbour-users/9bcc4b1e-21f6-422f-a0ba-c0bef3767225n%40googlegroups.com.

 

Bernard Mouille

unread,
Sep 9, 2021, 4:01:28 PM9/9/21
to Harbour Users
Hello,
hb_dirbase() for the files path default,
ExeName := HB_GtInfo( HB_GTI_WINTITLE ) if you have not changed the console title.

if you use Windows, I have some tools.

Regards,
Bernard.

hherrera

unread,
Sep 9, 2021, 4:24:45 PM9/9/21
to Harbour Users
Thanks  Jaceck and Bernard 
Hb_DirBase()   
Work fine!!

Henry Herrera


Ronaldo Geniais

unread,
Sep 10, 2021, 8:57:10 AM9/10/21
to Harbour Users
you can try
hb_argv(0)
Reply all
Reply to author
Forward
0 new messages