A straight FILE-FIND - function ?
Posted: Fri Jul 25, 2008 8:43 am
Hello,
i'm busy, to create a new easy to use 3 step - MAKE-utility.
1. define a project-name.
2. select HARBOUR or xHARBOUR.
3. select your project path.
thats all
I want a automatic find of the
installed FWH, xHARBOUR, HARBOUR, BORLAND-files.
------ Start of the MAKE-script
#Borland make sample, (c) FiveTech Software 2005
HBDIR=d:\xharbour
BCDIR=d:\bcc55
FWDIR=d:\fwh
-----------------------------
At first i have _ for drives :
aDrives( [<nType>] ) --> aDrives
than in a loop of the aDrives-array for the files :
aFindFile( <cFileName>, <cPath>, <aResult> ) --> aResult
I tested aFindfile() as stand-alone prog., but don't get it working
bound-error and so on.
aResult1 := {} // Borland
aResult2 := {} // Harbour
aResult3 := {} // FWH
// <cFileName> File to search.
// <cPath> Path of beginning of the search.
// <aResult> Array where the result of the search will be stored.
aFindFile( "BCC32.exe", "c:", aResult1 ) // starting from c:
msgalert( aResult1[1][1] ) ?????
aFindFile( "HARBOUR.exe", "c:", aResult2 )
msgalert( aResult2[1][1] ) ?????
aFindFile( "FIVEH.lib", "c:", aResult3 )
msgalert( aResult3[1][1] ) ?????
somebody knows, how the structure of the return-array looks ?
i couldn't find a sample.
is there another way ( maybe a API-function )
_ for the directory infos ?
Best Regards
Uwe
i'm busy, to create a new easy to use 3 step - MAKE-utility.
1. define a project-name.
2. select HARBOUR or xHARBOUR.
3. select your project path.
thats all
I want a automatic find of the
installed FWH, xHARBOUR, HARBOUR, BORLAND-files.
------ Start of the MAKE-script
#Borland make sample, (c) FiveTech Software 2005
HBDIR=d:\xharbour
BCDIR=d:\bcc55
FWDIR=d:\fwh
-----------------------------
At first i have _ for drives :
aDrives( [<nType>] ) --> aDrives
than in a loop of the aDrives-array for the files :
aFindFile( <cFileName>, <cPath>, <aResult> ) --> aResult
I tested aFindfile() as stand-alone prog., but don't get it working
bound-error and so on.
aResult1 := {} // Borland
aResult2 := {} // Harbour
aResult3 := {} // FWH
// <cFileName> File to search.
// <cPath> Path of beginning of the search.
// <aResult> Array where the result of the search will be stored.
aFindFile( "BCC32.exe", "c:", aResult1 ) // starting from c:
msgalert( aResult1[1][1] ) ?????
aFindFile( "HARBOUR.exe", "c:", aResult2 )
msgalert( aResult2[1][1] ) ?????
aFindFile( "FIVEH.lib", "c:", aResult3 )
msgalert( aResult3[1][1] ) ?????
somebody knows, how the structure of the return-array looks ?
i couldn't find a sample.
is there another way ( maybe a API-function )
_ for the directory infos ?
Best Regards
Uwe