2 WindowLocaleTitle {File Browser}
3 WindowSize 360 340 # Taille
8 Set $PWD=(GetScriptArgument 1)
13 If (StrCopy $PWD $POS $POS)=={/} Then
17 Set $POS=(Add $POS -1)
19 Set $PWD=(StrCopy $PWD 1 $POS)
20 Set $CMD2={cd;cd } $PWD {; pwd}
21 Set $PWD=(GetOutput $CMD2 0 0)
23 Set $CMD={cd } $PWD {; ls} $OPT {-1 -F}
24 Set $LS=(GetOutput $CMD 1 -1)
26 While (GetOutput $CMD $ID -1) <> {} Do
28 Set $LS=$LS {|} (GetOutput $CMD $ID -1)
47 SendToScript (GetScriptFather) $PWD {/} (GetTitle 9)
84 Flags NoReliefString NoFocus Left
97 Flags NoReliefString NoFocus Left
133 Set $CMD={cd } $PWD {/..; pwd}
134 Set $PWD=(GetOutput $CMD 0 0)
135 Set $CMD={cd } $PWD {; ls} $OPT {-1 -F}
136 Set $LS=(GetOutput $CMD 1 -1)
138 While (GetOutput $CMD $ID -1) <> {} Do
140 Set $LS=$LS {|} (GetOutput $CMD $ID -1)
162 Set $CMD={cd } $PWD {; ls} $OPT {-1 -F}
163 Set $LS=(GetOutput $CMD 1 -1)
165 While (GetOutput $CMD $ID -1) <> {} Do
167 Set $LS=$LS {|} (GetOutput $CMD $ID -1)
181 LocaleTitle { Show hidden files}
186 If (GetValue 12) == 1 Then
190 Set $CMD={cd } $PWD {; ls} $OPT {-1 -F}
191 Set $LS=(GetOutput $CMD 1 -1)
193 While (GetOutput $CMD $ID -1) <> {} Do
195 Set $LS=$LS {|} (GetOutput $CMD $ID -1)
215 Set $CMD3={cd } $PWD {; ls} $OPT {-1}
216 Set $PWD2=$PWD {/} (GetOutput $CMD3 (GetValue 7) -1)
217 Set $CMD2={cd } $PWD {;cd } $PWD2 { 2>/dev/null; pwd}
218 Set $PWD2=(GetOutput $CMD2 0 0)
219 If $PWD2 <> $PWD Then
222 Set $CMD={cd } $PWD {; ls} $OPT {-1 -F}
223 Set $LS=(GetOutput $CMD 1 -1)
225 While (GetOutput $CMD $ID -1) <> {} Do
227 Set $LS=$LS {|} (GetOutput $CMD $ID -1)
236 ChangeTitle 9 (GetOutput $CMD3 (GetValue 7) -1)
244 Flags NoReliefString NoFocus
246 LocaleTitle {Selected file:}