Changeset 451 for branches/guitools-1.0/shared/swat.vrs
- Timestamp:
- May 25, 2010, 6:17:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-1.0/shared/swat.vrs
r277 r451 15 15 end 16 16 end 17 if samba.!htpasswdexe = "" then do /* wellknown locations */ 18 WellKnown = SysBootdrive()"\ecs\system\apache2\bin;"SysBootdrive()"\apache2\bin" 19 Programs = value("PROGRAMS",,'OS2ENVIRONMENT') 20 if Programs <> "" then WellKnown = Wellknown';'Programs'\apache2\bin' 21 Tools = value("TOOLS",,'OS2ENVIRONMENT') 22 if Tools <> "" then WellKnown = Wellknown';'Tools'\apache2\bin' 23 call charout , " Are binaries in wellknown locations? " 24 ok = VRFindFile("htpasswdexe.exe",WellKnown) 25 if ok <> "" then say "Yes."; else say "No." 26 if ok <> "" then samba.!htpasswdexe = ok 27 drop Wellknown Tools Programs 28 end 29 17 30 if samba.!htpasswdexe = "" then do /* in current directory? */ 18 31 call charout , " Is htpasswd.exe in current directory? " 19 32 ok = SysFileTree('.\htpasswd.exe', exist.,'FO') 20 say exist.0' (1 = Yes, 0 = No)'33 if exist.0 = 1 then say "Yes."; else say "No." 21 34 if exist.0 = 1 then samba.!htpasswdexe = exist.1 22 35 end … … 24 37 call charout , " Is htpasswd.exe in parent directory? " 25 38 ok = SysFileTree('..\htpasswd.exe', exist.,'FO') 26 say exist.0' (1 = Yes, 0 = No)'39 if exist.0 = 1 then say "Yes."; else say "No." 27 40 if exist.0 = 1 then samba.!htpasswdexe = exist.1 28 41 end … … 30 43 call charout , " Is htpasswd.exe in ..\BIN directory? " 31 44 ok = SysFileTree('..\bin\htpasswd.exe', exist.,'FO') 32 say exist.0' (1 = Yes, 0 = No)'45 if exist.0 = 1 then say "Yes."; else say "No." 33 46 if exist.0 = 1 then samba.!htpasswdexe = exist.1 34 47 end … … 36 49 call charout , " Is htpasswd.exe in "SysBootDrive()"\apache2\bin path? " 37 50 ok = SysFileTree(SysBootDrive()'\apache2\bin\htpasswd.exe', exist.,'FO') 38 say exist.0' (1 = Yes, 0 = No)'51 if exist.0 = 1 then say "Yes."; else say "No." 39 52 if exist.0 = 1 then samba.!htpasswdexe = exist.1 40 53 end … … 42 55 call charout , " Is htpasswd.exe in ..\..\apache2\bin path? " 43 56 ok = SysFileTree('..\..\apache2\bin\htpasswd.exe', exist.,'FO') 44 say exist.0' (1 = Yes, 0 = No)'57 if exist.0 = 1 then say "Yes."; else say "No." 45 58 if exist.0 = 1 then samba.!htpasswdexe = exist.1 46 59 end
Note:
See TracChangeset
for help on using the changeset viewer.