I have successfully written an XFD to ATR converter for the PC for those Atari 8 Bit XFD files. The program is fairly fast , it will convert 180 programs in under 10 seconds. I am including both the zip file and the code, the zip file has the executable and source code, and the two directories that were used.
start:
Print "Quick and easy XFD to ATR Converter" Print "Written by Russ Campbell" Print "Copyright (c) 2022" Print "When entering your paths below" Print "Don't forget your drive [c:\XFD\]" Print "And don't forget proper ':' and '\s' as above" Input "Please Enter your path for XFDs : ", path1$
Print "Missing the ':' Character, try again." Print "Missing the '\' Character, try again."
Input "Please Enter your path for ATRs : ", path2$
Print "Missing the ':' Character, try again." Print "Missing the '\' Character, try again."
header$ = "0000000000000000"
Data 150,2,128,22,128,0,0,0,0,0,0,0,0,0,0,0
file$ = a$
'On Error GoTo FINISH
temp$
= Space$(LOF(2)) 'set temp$ to be the size of the file, if you want to get the whole thing at once. Get #2, , temp$
'get the whole array temp2$ = header$ + temp$
file2$ = file$
Mid$(file2$
, (Len(file2$
) - 3), 4) = ".atr" Print "Header added to "; path1$; file$
Print "Saved as "; path2$; file2$
Print "Length of "; file2$;
" = ";
Len(temp2$
)
FINISH:
Print "Program finished, if you reached this in error " Print "Check your xfd and atr paths."