home *** CD-ROM | disk | FTP | other *** search
- ' Open Data File
- File$ = "*\bdata.txt"
- open "i", 1, File$
- ' Input Path
- Input #1, b$
- ' Output path
- Input #1, e$
- f$ = e$,"\"
- Sys$(20) = f$
- ' Close File
- Close #1
- ' Open File
- File$ = "*\bfiles.txt"
- open "i", 1, File$
- open "i", 2, "*\bfiles2.txt"
- ' Loop Until End of File
- Do While EOF(1) = 0
- Input #1, A$
- Input #2, c$
- ' Opens the file, Fits it to Window
- >Open
- {
- <Filename [A$]
- }
- ' Fit file to window
- >FitToAllWindow
- {
- }
- sblen = Len(c$)
- sblen = sblen - 3
- d$ = Left$(c$, sblen)
- s$ = "dc"
- g$ = d$,s$
- Temp$ = e$ + "\" + g$
- ' Save File
- >SaveAs
- {
- <SelectOnly 0
- <Filename [Temp$]
- }
- ' Close Current File
- >Close
- {
- <SaveChanges 1
- <FileName [Temp$]
- }
- Loop
- ' Close Data Files
- Close #1
- Close #2
- ' Done
- End
-