Files
TempleOS-Rijn/LT/Doc/LTZ.TXZ
T
2018-09-08 21:45:20 +02:00

29 lines
2.6 KiB
Plaintext

$WW,1$$FG,5$$TX+CX,"Wins LTZ Utility"$$FG$
$FG,2$LTZ$FG$ is a Windows command line program which will assist transferring files from LoseThos to Windows. It will also uncompress LoseThos files you have gotten to Windows. There are two ways to get files from LoseThos to Windows -- via CD-ROM or via a "file partition" you have created with $FG,2$LTZ$FG$ on a Windows partition.
$FG,2$LTZ -expand [-ascii] dirname$FG$:
will uncompress all LoseThos files with names ending in '$FG,2$Z$FG$' in a Windows directory and in all subdirectories. The $FG,2$-ascii$FG$ flag used in combination will convert the irregular LoseThos ASCII 5 and ASCII 31 characters to spaces. (ASCII 5 is used to mark the cursor position and ASCII 31 is used for shifted space characters and will cause problems unless you convert them.) Note: If you pick names not ending in '$FG,2$Z$FG$', they will not need to be uncompressed. You can $LK,"Move","MN:Move"$() or $LK,"Copy","MN:Copy"$() them to a name not ending in '$FG,2$Z$FG$' and they will be stored uncompressed.
$FG,2$LTZ -make blkcnt partfilename signnum$FG$:
will create a file on a Windows partition and fill it with a signature number that can be searched for block-by-block from LoseThos. Once some blocks have been allocated by Windows and located by LoseThos, and if you don't mess with them, you can use them to transfer files between LoseThos and Windows. This is a little risky. It's pretty safe if you create this file on a partition dedicated for this purpose.
$LK,"ScanNonLT","MN:ScanNonLT"$():
is a LoseThos command which will scan for some blocks created by $FG,2$LTZ$FG$ and provide a block number you can use to specify a "Non-LT file partition". You can recompile OSMain and define this partition or use $LK,"AddDrives","MN:AddDrives"$() each time. You will be asked to provide a drive letter and from then on, you just copy files to that partition, boot Windows and run $FG,2$LTZ$FG$ to extract them.
$FG,2$LTZ -extract dstdirname partfilename$FG$:
will copy all files in a file partition to a Windows directory, making them available from Wins.
$BK,1$WARNING:$BK,0$ Do not attempt to uncompress files twice or it will crash. If there are any files ending in '$FG,2$Z$FG$' which are present, it'll probably crash too. You might get really unlucky and it uncompresses and creates havoc.
$BK,1$WARNING:$BK,0$ Do not run a defrag operation on a partition holding a file partition. If you store files to it after such an operation, you'll ruin data on your hard drive. If you don't like this danger, beg Microsoft to make FAT filesystem's public domain.