This link has
https://u.pcloud.link/publink/show?code=kZj9WUVZQ76IC12Q0mhtTqctqR8AsLiEOdpk
READDIR.txt a BASIC program I wrote to create a file I was hoping could be executed with the TRSDOS DO command
JOB a file created by the READDIR.txt and OUTPUT to a text file via EXPORT2
HELLO a file created with the BUILD command and OUTPUT to a text file via EXPORT2. It is contains EXPORT2 -e ACCTFILE/FD:3
XFER.IMD disk with the files above in TRS format
When I try to run the JOB file via the DO command I get an error 24. That file is on drive 2. The first line in the file is
EXPORT2 -e ACCTFILE/FD:3 and it works as shown below
I noticed the documentation for the TRSDOS DO command says it won't work for files created by BASIC. As required, I used the TRSDOS BUILD command and just typed
EXPORT2 -e ACCTFILE/FD:3
I looked at this file with a hex editor and compared it to a file I created via BASIC. The file made with BUILD has the hex value D0 in the first byte. I thought maybe if I write that value to the file I create with BASIC, that would trick the DO command would execute. Once again I realize how much TRS BASIC knowledge I used to have is gone. I looked through the manual for BASIC and can't figure out how to make the first byte of the file equal to hex D0.
Here are my attempts to figure this out. HELLO:0 is the file created via the BUILD command
10 OPEN "D",3,"HELLO:0",1
20 FIELD 3,1 AS B$
30 GET 3,1
40 LSET C$=B$
50 PRINT C$: PRINT ASC(C$)
?FC Error
Ready
>? C$
Ready
>? ASC(C$)
?FC Error
Ready
>? ASC$(C$)
?SN Error
Ready
>? HEX$(D0)
0
Ready
>? HEX$($D0)
?SN Error
>? HEX$($D0$)
?SN Error
Ready
>? $D0
?SN Error
Ready
>
Ready
>? $D0$
?SN Error
Ready
>
https://u.pcloud.link/publink/show?code=kZj9WUVZQ76IC12Q0mhtTqctqR8AsLiEOdpk
READDIR.txt a BASIC program I wrote to create a file I was hoping could be executed with the TRSDOS DO command
JOB a file created by the READDIR.txt and OUTPUT to a text file via EXPORT2
HELLO a file created with the BUILD command and OUTPUT to a text file via EXPORT2. It is contains EXPORT2 -e ACCTFILE/FD:3
XFER.IMD disk with the files above in TRS format
When I try to run the JOB file via the DO command I get an error 24. That file is on drive 2. The first line in the file is
EXPORT2 -e ACCTFILE/FD:3 and it works as shown below
I noticed the documentation for the TRSDOS DO command says it won't work for files created by BASIC. As required, I used the TRSDOS BUILD command and just typed
EXPORT2 -e ACCTFILE/FD:3
I looked at this file with a hex editor and compared it to a file I created via BASIC. The file made with BUILD has the hex value D0 in the first byte. I thought maybe if I write that value to the file I create with BASIC, that would trick the DO command would execute. Once again I realize how much TRS BASIC knowledge I used to have is gone. I looked through the manual for BASIC and can't figure out how to make the first byte of the file equal to hex D0.
Here are my attempts to figure this out. HELLO:0 is the file created via the BUILD command
10 OPEN "D",3,"HELLO:0",1
20 FIELD 3,1 AS B$
30 GET 3,1
40 LSET C$=B$
50 PRINT C$: PRINT ASC(C$)
?FC Error
Ready
>? C$
Ready
>? ASC(C$)
?FC Error
Ready
>? ASC$(C$)
?SN Error
Ready
>? HEX$(D0)
0
Ready
>? HEX$($D0)
?SN Error
>? HEX$($D0$)
?SN Error
Ready
>? $D0
?SN Error
Ready
>
Ready
>? $D0$
?SN Error
Ready
>