home *** CD-ROM | disk | FTP | other *** search
RISC OS BBC BASIC V Source | 1995-02-06 | 1.7 KB | 77 lines |
- >CleanCopy2
- $;" at ";
- wrk% 255, wrk2% 255
- B A$ = "ADFS::Hard1.$.StrongFS.!StrongHlp.HelpData.StrongHelp"
- B B$ = "ADFS::Hard1.$.StrongFS.!StrongHlp.HelpData.StrongHel+"
- We create the new "Manual"
- A% =
- _DirSize(A$)
- "StrongCreate "+B$+" "+
- "StrongCreate "+B$+" "+
- (A%+8)
- Now recursively copy everything
- _CopyDir(A$,B$)
- _CopyDir(From$,To$)
- offset%,read%,x%,A%,F$,T$,S%,strlen%
- offset% = 0
- G
- "OS_GBPB",10,From$,wrk%,1,offset%,255,"*"
- ,,,read%,offset%
- read% > 0
- x% = wrk%
-
- A% = 1
- read%
- % strlen% =
- _StrLen(x%+20)
- !! ?(x%+20+strlen%) = 13
- #' F$ = From$ + "." + $(x%+20)
- $' T$ = To$ + "." + $(x%+20)
-
- x%!16
- &
- 1 :
- "Copy ";F$
- '3
- "OS_FSControl",26,F$,T$,0
- (&
- 2 : S% =
- _DirSize(F$)
- )(
- "Create ";T$,S%
- *,
- "Cdir "+T$+" "+
- +'
- _CopyDir(F$,T$)
-
- .- x% += ((strlen%+4)
- 3) + 20
-
- 0
- offset% = -1
- _DirSize(dir$)
- tot%,offset%,strlen%,A%,x%
- tot% = 4
- offset% = 0
- :I
- "OS_GBPB",10,dir$,wrk2%,255,offset%,255,"*"
- ,,,read%,offset%
- read% > 0
- x% = wrk2%
-
- A% = 1
- read%
- >2 strlen% = (
- _StrLen(x%+20) + 4 )
- ?" tot% += strlen% + 24
- @" x% += strlen% + 24
-
- B
- offset% = -1
- = tot%
- _StrLen(A%)
- L% = A%
- ?A% >= 32
- A% += 1
- = A% - L%
-