Changeset 316 for branches/guitools-2.0/shared
- Timestamp:
- Aug 18, 2009, 10:30:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/guitools-2.0/shared/cltinit.vrs
r315 r316 40 40 say ' Changing into "'directory(samba.!tools)'"' 41 41 42 /* smb d.exe */42 /* smbclient.exe */ 43 43 samba.!smbclientexe = "" 44 44 if samba.!smbclientexe = "" then do /* in current directory? */ 45 45 call charout , " Are binaries in current directory? " 46 ok = SysFileTree('.\smb d.exe', exist.,'FO')46 ok = SysFileTree('.\smbclient.exe', exist.,'FO') 47 47 say exist.0' (1 = Yes, 0 = No)' 48 48 if exist.0 = 1 then samba.!smbclientexe = exist.1 … … 50 50 if samba.!smbclientexe = "" then do /* in parent directory? */ 51 51 call charout , " Are binaries in parent directory? " 52 ok = SysFileTree('..\smb d.exe', exist.,'FO')52 ok = SysFileTree('..\smbclient.exe', exist.,'FO') 53 53 say exist.0' (1 = Yes, 0 = No)' 54 54 if exist.0 = 1 then samba.!smbclientexe = exist.1 … … 56 56 if samba.!smbclientexe = "" then do /* in ..\BIN directory? */ 57 57 call charout , " Are binaries in ..\BIN directory? " 58 ok = SysFileTree('..\bin\smb d.exe', exist.,'FO')58 ok = SysFileTree('..\bin\smbclient.exe', exist.,'FO') 59 59 say exist.0' (1 = Yes, 0 = No)' 60 60 if exist.0 = 1 then samba.!smbclientexe = exist.1 … … 62 62 if samba.!smbclientexe = "" then do /* in SMB_EXE ? */ 63 63 call charout , " Are binaries in SMB_EXE path? " 64 samba.!smbclientexe = SysSearchPath("SMB_EXE"," SMBD.EXE")64 samba.!smbclientexe = SysSearchPath("SMB_EXE","smbclient.EXE") 65 65 if samba.!smbclientexe = "" then say "No."; else say "Yes." 66 66 end 67 67 if samba.!smbclientexe = "" then do /* in PATH ? */ 68 68 call charout , " Are binaries in PATH? " 69 samba.!smbclientexe = SysSearchPath("PATH"," SMBD.EXE")69 samba.!smbclientexe = SysSearchPath("PATH","smbclient.EXE") 70 70 if samba.!smbclientexe = "" then say "No."; else say "Yes." 71 71 end 72 72 73 if samba.!smbclientexe = "" then call _ErrorBinaryNotFound " could not find smb d.exe!"73 if samba.!smbclientexe = "" then call _ErrorBinaryNotFound " could not find smbclient.exe!" 74 74 75 75 samba.!bin = VRParseFileName(samba.!smbclientexe,'DP') … … 99 99 samba.!smbspoolexe = samba.!bin'\smbspool.exe' 100 100 if \VRFileExists(samba.!smbspoolexe) then call _ErrorBinaryNotFound " could not find smbspool.exe!" 101 IF options.!debug == 1 THEN say ' smbspool.exe = "'samba.!smbspoolexe'"'101 IF options.!debug == 1 THEN say ' smbspool.exe = "'samba.!smbspoolexe'"' 102 102 103 103 /* smb.conf */
Note:
See TracChangeset
for help on using the changeset viewer.