Changeset 410 for branches/guitools-2.0/shared/cltinit.vrs
- Timestamp:
- Feb 21, 2010, 6:47:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-2.0/shared/cltinit.vrs
r404 r410 38 38 end 39 39 IF options.!debug == 1 THEN say ' Samba tools = "'samba.!tools'"' 40 say ' Changing into "'directory(samba.!tools)'"'40 say ' Changing into tools "'directory(samba.!tools)'"' 41 41 42 42 /* smbclient.exe */ 43 43 samba.!smbclientexe = "" 44 if samba.!smbclientexe = "" then do /* wellknown locations */ 45 WellKnown = sysBootdrive()"\ecs\system\samba;"sysBootdrive()"\samba" 46 Programs = value("PROGRAMS",,'OS2ENVIRONMENT') 47 if Programs <> "" then WellKnown = Wellknown';'Programs'\samba' 48 Tools = value("TOOLS",,'OS2ENVIRONMENT') 49 if Programs <> "" then WellKnown = Wellknown';'Tools'\samba' 50 say Wellknown 51 call charout , " Are binaries in wellknown locations? " 52 ok = VRFindFile("smbclient.exe",WellKnown) 53 if ok <> "" then say "Yes."; else say "No." 54 if ok <> "" then samba.!smbclientexe = ok 55 drop Wellknown 56 end 44 57 if samba.!smbclientexe = "" then do /* in current directory? */ 45 58 call charout , " Are binaries in current directory? " 46 59 ok = SysFileTree('.\smbclient.exe', exist.,'FO') 47 say exist.0' (1 = Yes, 0 = No)'60 if exist.0 = 1 then say "Yes."; else say "No." 48 61 if exist.0 = 1 then samba.!smbclientexe = exist.1 49 62 end … … 51 64 call charout , " Are binaries in parent directory? " 52 65 ok = SysFileTree('..\smbclient.exe', exist.,'FO') 53 say exist.0' (1 = Yes, 0 = No)'66 if exist.0 = 1 then say "Yes."; else say "No." 54 67 if exist.0 = 1 then samba.!smbclientexe = exist.1 55 68 end … … 57 70 call charout , " Are binaries in ..\BIN directory? " 58 71 ok = SysFileTree('..\bin\smbclient.exe', exist.,'FO') 59 say exist.0' (1 = Yes, 0 = No)'72 if exist.0 = 1 then say "Yes."; else say "No." 60 73 if exist.0 = 1 then samba.!smbclientexe = exist.1 61 74 end
Note:
See TracChangeset
for help on using the changeset viewer.