2019-08-11 19:54:00 +00:00
# chtype - change file type command for ProDOS
2019-01-01 04:59:35 +00:00
2021-03-08 00:41:56 +00:00
[![Build Status ](https://travis-ci.org/a2stuff/chtype.svg?branch=main )](https://travis-ci.org/a2stuff/chtype)
2019-01-01 04:59:35 +00:00
Build with [ca65 ](https://cc65.github.io/doc/ca65.html )
Installation:
* Copy target to ProDOS disk
* From BASIC.SYSTEM prompt, run: `-CHTYPE` from STARTUP (or by hand)
Usage:
```
2019-01-02 18:42:52 +00:00
CHTYPE pathname[,Ttype][,Aauxtype][,S#][,D#]
2019-01-01 04:59:35 +00:00
```
Examples:
2019-08-11 19:54:00 +00:00
* `CHTYPE file` - show current type/auxtype
2019-01-02 18:42:52 +00:00
* `CHTYPE pic,T$08` - set just type
* `CHTYPE file,A$0640` - set just auxtype
* `CHTYPE now_basic,TBAS,A$801` - set both type and auxtype
* `CHTYPE /root/was_bin,TSYS` - works with absolute paths
* `CHTYPE as_text,TTXT,S6,D1` - can use slot/drive arguments too
2019-01-01 04:59:35 +00:00
Notes:
* Allocates a 1 page buffer to store the code
* Relative or absolute paths can be used
* Can be invoked as lower case (e.g. `chtype ...` )
2019-01-01 06:27:59 +00:00
Resources:
2019-01-03 02:25:11 +00:00
* [File Types Table ](http://www.easy68k.com/paulrsm/6502/PDOS8TRM.HTM#B-1T ) - [ProDOS 8 Technical Reference Manual ](http://www.easy68k.com/paulrsm/6502/PDOS8TRM.HTM )
2019-01-01 06:27:59 +00:00
* [File Types ](https://www.kreativekorp.com/miscpages/a2info/filetypes.shtml ) - [Jon Relay's Apple II Info Archives ](https://www.kreativekorp.com/miscpages/a2info/ )
* [ProDOS File Types 2.0 ](https://macgui.com/kb/article/116 ) - [Mac GUI ](https://macgui.com )