forked from mattslay/GoFish
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathGoFish.prg
40 lines (35 loc) · 882 Bytes
/
GoFish.prg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
LOCAL;
lcProg AS CHARACTER,;
lcBase AS CHARACTER
*Bestimme Pfad
lcProg = SYS(16)
lcBase = JUSTPATH(m.lcProg)
DO WHILE !EMPTY(m.lcBase)
IF DIRECTORY(m.lcBase+'\Tools') THEN
*gefunden
EXIT
ENDIF &&DIRECTORY(m.lcBase+'\Tools')
lcBase = JUSTPATH(m.lcBase)
ENDDO &&WHILE !EMPTY(m.lcBase)
DO CASE
CASE !EMPTY(m.lcBase)
*done
CASE DIRECTORY('E:\SE\Tools')
lcBase = 'E:\SE'
CASE DIRECTORY('E:\Tools')
lcBase = 'E:'
CASE DIRECTORY(JUSTDRIVE(m.lcProg)+'\SE\Tools')
lcBase = JUSTDRIVE(m.lcProg)+'\SE'
CASE DIRECTORY(JUSTDRIVE(m.lcProg)+'\Tools')
lcBase = JUSTDRIVE(m.lcProg)
ENDCASE
*Menü nach Path laden (.mpr ist im Pfad)
IF !EMPTY(m.lcBase) THEN
DO lcBase+'\TOOLS\Start_Project.prg' WITH;
lcProg,;
'',;
RGB(255,183,255),;
RGB(000,000,000),;
'Source\Images\Fish13.ico',;
' - Go! Fish!'
ENDIF &&!EMPTY(m.lcBase)