ok sorry for the delay in getting back on this... had to squeeze this test in during my normal maintenance window with this machine.
I took some screenshots to show what I have and what I am getting. Also in the screenshots I placed the directory listing so you can see the exact file sizes of before and after.
I performed the test that you requested and got the same results. I then decided to make a smaller file with regular text in it and no special characters or formatting and got the same results as seen in the 2 screenshots.
Sorry that the screenshots are scrunched. I had to fit bit maps onto floppy disks, and this lead to 30 minutes having to dig up a healthy floppy drive to install into the system and then find some floppies that didnt get eaten from grime and dust bunnies. That one floppy drive that I did find that wasnt too dirty, I am going to keep in a baggie some place safe with a could floppies for in the future when i need to get data off of the system or back it up ever again.
As far as implementing the batch file on this system, I had to print out the info you provided and manually key it all in and confirm multiple times checking that I dont have a typo between what you have listed and what I typed. I used notepad to make the batch file and save as a .bat file. Reason for not copy/pasting info from this computer from CH thread to notepad and then saved to a floppy with batch file on it is that data security is "VERY TIGHT".... so i have the right to take a blank floppy and copy "non sensitive" data to it to share from this machine, but I am not allowed to bring data to it in data file format by any media and so I have to manually type in the batch file to implement it in which no virus/malware/backdoor hack tools can travel unless intentionally coded in notepad..
For the fact that its wiping out the contents on both file types and only the LS: N containing file is replaced with LS: Y and the $LASTSORT N file is always a 0 sized file lacking replacement to $LASTSORT Y, we might be looking at 2 problems. If it was just 1 problem then the contents would be wiped out and the file would be populated with $LASTSORT Y in place of $LASTSORT N
Hopefully your not getting frustrated with this and enjoy challenges that NT4 seem to pose for myself and now all who are involved on CH working on this trying to figure it out. Many thanks in all efforts on trying to come to a working solution on this if one could be made given the complications.
NT4 and batch files for me has been very frustrating. Also today when trying to perform an unconditional format on a floppy disk I found out that NT4 doesnt have an
/u unconditional format switch to try to get part of the floppy disk to work in the drive for a damaged disk.
Well here is the screenshots and here is an exact copy/paste of my code that I typed off of yours direct from the machine through floppy sneaker network.
@echo off
rem cd "C:\Machine1\Parameters\Sorts"
for %%a in (*.mtx *.xts) do (
(
for /f "delims=" %%b in ('type "%%a"') do (
if "%%b"=="LS: N" echo LS: Y
if "%%b"=="$LASTSORT N" echo $LASTSORT Y
if not "%%b"=="LS: N" if not "%%b"=="$LASTSORT N" echo %%b
)
)>"%%a+tmp"
del "%%a"
)
for %%a in ("*+tmp") do (
for /f "tokens=1 delims=+" %%b in ("%%a") do ren "%%a" "%%b"
)
echo done
pause
This batch was executed from C:\Machine1\Parameters\Sorts
Pic1 is before the batch is run the file contents.
Pic2 is after the batch is run the file contents wiped out and only the file containing LS: N replaced with LS: Y
The good thing is that the file extensions are correct now!
[attachment deleted by admin to conserve space]