Changeset 786 for trunk/guitools/shared/smbtree.vrs
- Timestamp:
- Aug 13, 2013, 4:24:43 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/shared/smbtree.vrs
r785 r786 83 83 comment = strip(comment) 84 84 if VRGet("CN_smbtree","View") = "IconTree" then parent = smbtree.!workgroup; else parent = "" 85 /* We make any machine as sleeping initially */85 /* We create any machine as sleeping initially */ 86 86 smbtree.!machine = _AddSleepingMachine(machine,comment,parent) 87 87 … … 117 117 end 118 118 when smbtreeline.sl = "" then nop /* skip empty lines */ 119 otherwise do /* possibl y anew workgroup */119 otherwise do /* possible new workgroup */ 120 120 say ' Possible workgroup: "'smbtreeline.sl'"' 121 /* check for eventual error messages */ 122 if pos("RECEIVING",translate(smbtreeline.sl)) > 0 | pos("NT_STATUS",translate(smbtreeline.sl)) > 0 then do 121 ThrowMsg = 0 122 /* Do some checks to be sure */ 123 select 124 when pos("RECEIVING",translate(smbtreeline.sl)) > 0 then ThrowMsg = 1 125 when pos("NT_STATUS",translate(smbtreeline.sl)) > 0 then ThrowMsg = 1 126 when pos(" ", smbtreeline.sl) > 0 then ThrowMsg = 1 127 when pos("=", smbtreeline.sl) > 0 then ThrowMsg = 1 128 when pos(":", smbtreeline.sl) > 0 then ThrowMsg = 1 129 when pos("%", smbtreeline.sl) > 0 then ThrowMsg = 1 130 otherwise do /* it is really a new workgroup */ 131 if VRGet("CN_smbtree","View") = "IconTree" then do 132 say "Checks passed, "smbtreeline.sl" is a workgroup!" 133 smbtree.!workgroup = _AddWorkGroup(smbtreeline.sl) 134 CurWG = smbtreeline.sl 135 end 136 end 137 end 138 if ThrowMsg = 1 then do 139 ThrowMsg = 0 123 140 Msg.Type = "W" 124 141 Msg.Text = smbtreeline.sl 125 142 call _ShowMsg 126 end127 else do /* it is really a new workgroup */128 if VRGet("CN_smbtree","View") = "IconTree" then do129 smbtree.!workgroup = _AddWorkGroup(smbtreeline.sl)130 end131 CurWG = smbtreeline.sl132 143 end 133 144 end … … 265 276 line = linein(smbmachine.I) 266 277 end 278 /* Filter possible debug messages */ 279 do while(pos("TDB(",translate(line)) > 0) | (pos("%",line) > 0) | (pos("=",line) > 0) 280 say ' Skip "'line'"' 281 line = linein(smbmachine.I) 282 end 267 283 say ' Message "'line'"' 284 268 285 ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'UserData', "SERVER|"||strip(line)) 269 286
Note:
See TracChangeset
for help on using the changeset viewer.