CurDir() / hb_CurDrive()

351 views
Skip to first unread message

Gmail

unread,
Nov 24, 2011, 6:19:39 AM11/24/11
to harbou...@googlegroups.com
Hello,
 
    I am probably forgeting too many things so I need someone's help.
    I am trying to get the "current drive and directory where the .EXE is" but hb_curdrive() and curdir() will give the returns the current directory of the specified disk drive but not the actual place where my .EXE is... I remember there was a function for it but I am not sure wich one. Something like CurExeDrive() and CurExeDir().
    Can someone point it to me, please?
    Thanks
 
Qatan
 

Fernando Yurisich

unread,
Nov 24, 2011, 6:57:01 AM11/24/11
to harbou...@googlegroups.com
You can use
FUNCTION win_GetExeFileName()
   RETURN hb_ArgV( 0 )

Regards
Fernando Yurisich
--
Q.P.M. is the continuation of Q.A.C. project manager for (x)Harbour and OOHG/Minigui based projects.
Please visit our site at sourceforge and join the user list.




2011/11/24 Gmail <wanst...@gmail.com>

--
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

Maurizio la Cecilia

unread,
Nov 24, 2011, 7:15:08 AM11/24/11
to harbou...@googlegroups.com
Hi Qatan,
you can try with:

local appPath

hb_FNameSplit( hb_ArgV( 0 ), @appPath )

Best regards.
Maurizio

Viktor Szakáts

unread,
Nov 24, 2011, 7:39:09 AM11/24/11
to Harbour Users
Hi Qatan,

hb_ProgName()

Viktor

Gmail

unread,
Nov 24, 2011, 8:11:05 AM11/24/11
to harbou...@googlegroups.com
Hello Fernando,
 
   Thank you
 
Qatan

Gmail

unread,
Nov 24, 2011, 8:11:18 AM11/24/11
to harbou...@googlegroups.com
Hello Maurizio,
 
    Thank you
 
Qatan
----- Original Message -----
Sent: Thursday, November 24, 2011 10:15
Subject: Re: [harbour-users] CurDir() / hb_CurDrive()

Gmail

unread,
Nov 24, 2011, 8:14:02 AM11/24/11
to harbou...@googlegroups.com
Hello,

Thanks to you all who were so kind to help.
I will use the functions and ideas you gave me, in special i liked
hb_dirBase() that seems to give the exact result I am looking for (although
all your ideas worked too) - thank you!
Looking on the Changelog I found:

HB_ARGV( 0 )
EXENAME()
hb_progname()
hb_dirBase()

BTW I rely too much on xHarbour docs (that are very nice and easy to
use) but it is important to look into the valuable information on the
Changelog that is such a good source of information, too.
But I would not find it without your help (or it would take too much
time...)
Regards,

Qatan


Hi Qatan,

hb_ProgName()

Viktor

--

Reply all
Reply to author
Forward
0 new messages