home *** CD-ROM | disk | FTP | other *** search
INI File | 1991-08-19 | 3.7 KB | 312 lines |
- [ver]
- 4
- [sty]
- ~macro.sty
- [files]
- [charset]
- 82
- ANSI (Windows, IBM CP 1252)
- [revisions]
- 0
- [prn]
- PostScript Printer
- [lang]
- 1
- [desc]
- Link this to the ccMail Icon. You will need a DOS path to the ccMail directory.
- Lotus WPD Marketing
- Beginner
- Exec
-
- 682670133
- 9
- 676763487
- 4
- 1
- 0
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- [fopts]
- 0
- 1
- 0
- 0
- [lnopts]
- 2
- Body Text
- 1
- [docopts]
- 5
- 2
- [l1]
- 0
- [edoc]
- Macro by <+!>Charlie Pappas<-!>
-
-
- function execsuite()
-
- app = "wmail.exe"
-
- appname = "cc:Mail for Windows"
-
- defdir = "c:\ccmail"
-
- ignorekeyboard(1)
-
- declare missouri(xapp)
-
- declare getprofile(xappname)
-
- declare writeprofile(path, xappname)
-
- declare tryit(path, xapp)
-
- defstr path;
-
-
- if appisrunning(appname)
-
- activateapp(appname)
-
- apprestore(appname)
-
- return 1
-
- endif
-
- if 0 = doschdir(defdir)
-
- if tryit("", app) <;> 31
-
- return 1
-
- endif
-
- endif
-
- if tryit(getprofile(appname), app) <;> 31
-
- return 1
-
- endif
-
- again:
-
- if assign(&path, missouri(app)) <<<;> 0
-
- if tryit(path, app) <;> 31
-
- writeprofile(path, appname)
-
- else
-
- goto again
-
- endif
-
- endif
-
- end function
-
-
- function tryit(path, app)
-
- doschdir(path)
-
- return exec(strcat$(path, app), "")
-
- end function
-
-
- function writeprofile(path, appname)
-
- writeprofilestring("LotusApps", appname, path, "amipro.ini")
-
- end function
-
-
- function getprofile(appname)
-
- return getprofilestring$("LotusApps", appname, "amipro.ini")
-
- end function
-
-
- function missouri(app)
-
- defstr box;
-
- filledit(9001, "*.exe")
-
- filledit(8007, app)
-
- if assign(&box, dialogbox(".", "findapp")) <<<;> 1
-
- return 0
-
- endif
-
- return getcurrentdir$()
-
- end function
-
-
-
- DIALOG findapp
-
- -2134376448 7 70 35 200 97 "" "" "Find Application"
-
- FONT 8 "Helv"
-
- 7 34 59 8 1000 1342177280 "static" "&Program path:" 0
-
- 6 45 60 44 9001 1352728579 "listbox" "" 0
-
- 155 5 40 14 1 1342373889 "button" "OK" 0
-
- 155 21 40 14 2 1342373888 "button" "Cancel" 0
-
- 68 34 80 8 7999 1342177280 "static" "" 0
-
- 7 6 142 9 1006 1342177280 "static" "Change into the directory that contains" 0
-
- 7 16 107 8 8007 1342177280 "static" "" 0
-
- END DIALOG
-
-
- >
-
- [Embedded]
- 00002221
- >
- [macsum] 6
- execsuite 0 0 5 2
- tryit 531 2 1 36
- writeprofile 612 2 1 41
- getprofile 685 1 1 45
- missouri 761 1 2 49
- findapp 918 0 -1 60
- [macse]
- 14 execsuite
- 7 "wmail.exe"
- 8 1
- 7 "cc:Mail for Windows"
- 8 2
- 7 "c:\ccmail"
- 8 3
- 0 32 1
- 0 1032 "{2}"
- 13
- 11 00000161
- 0 38 "{2}"
- 0 1031 "{2}"
- 5 1
- 15
- 9
- 5 0
- 0 781 "{3}"
- 13
- 18 0
- 11 00000262
- 16 tryit "" "{1}"
- 13
- 5 31
- 18 3
- 11 00000262
- 5 1
- 15
- 9
- 16 getprofile "{2}"
- 13
- 16 tryit [X] "{1}"
- 13
- 5 31
- 18 3
- 11 00000348
- 5 1
- 15
- 9
- 16 missouri "{1}"
- 13
- 0 805 &4 [X]
- 13
- 5 0
- 18 1
- 11 00000519
- 16 tryit "{4}" "{1}"
- 13
- 5 31
- 18 3
- 11 00000506
- 16 writeprofile "{4}" "{2}"
- 10 00000519
- 10 00000348
- 6 0
- 15
- 9
- 14 tryit
- 0 781 "{0}"
- 0 16 "{0}" "{1}"
- 13
- 0 22 [X] ""
- 13
- 15
- 9
- 6 2
- 15
- 9
- 14 writeprofile
- 0 287 "LotusApps" "{1}" "{0}" "amipro.ini"
- 6 2
- 15
- 9
- 14 getprofile
- 0 286 "LotusApps" "{0}" "amipro.ini"
- 13
- 15
- 9
- 6 1
- 15
- 9
- 14 missouri
- 0 31 9001 "*.exe"
- 0 31 8007 "{0}"
- 0 26 "." "findapp"
- 13
- 0 805 &2 [X]
- 13
- 5 1
- 18 1
- 11 00000127
- 5 0
- 15
- 9
- 0 290
- 13
- 15
- 9
- 6 1
- 15
- 9
- DIALOG findapp
- -2134376448 7 70 35 200 97 "" "" "Find Application"
- FONT 8 "Helv"
- 7 34 59 8 1000 1342177280 "static" "&Program path:" 0
- 6 45 60 44 9001 1352728579 "listbox" "" 0
- 155 5 40 14 1 1342373889 "button" "OK" 0
- 155 21 40 14 2 1342373888 "button" "Cancel" 0
- 68 34 80 8 7999 1342177280 "static" "" 0
- 7 6 142 9 1006 1342177280 "static" "Change into the directory that contains" 0
- 7 16 107 8 8007 1342177280 "static" "" 0
- 00002246
-