Ignore:
Timestamp:
Feb 21, 2010, 6:47:36 PM (15 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: Latest EVFSGUI changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/guitools-2.0/shared/cltinit.vrs

    r404 r410  
    3838    end
    3939    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)'"'
    4141
    4242    /* smbclient.exe */
    4343    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
    4457    if samba.!smbclientexe = "" then do /* in current directory? */
    4558        call charout , "  Are binaries in current directory? "
    4659        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."
    4861        if exist.0 = 1 then samba.!smbclientexe = exist.1
    4962    end
     
    5164        call charout , "  Are binaries in parent directory? "
    5265        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."
    5467        if exist.0 = 1 then samba.!smbclientexe = exist.1
    5568    end
     
    5770        call charout , "  Are binaries in ..\BIN directory? "
    5871        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."
    6073        if exist.0 = 1 then samba.!smbclientexe = exist.1
    6174    end
Note: See TracChangeset for help on using the changeset viewer.