I have recently embarked on a self-imposed challenge to make a "new" batch language. I have called it "ProDOS" and I am trying to make it similar to batch but with additions. I am trying to make commands (hence my "Adding commands to CMD" post) and I cannot define syntax. That is what I am asking here. How can I define syntax so as to make my commands more realistic. Here is an example batch command that I have made:
Code: Select all
@echo off
REM Must have "substitute" before it.
set /p a=Enter string to change :
set /p b=Enter alternative string :
set /p c=Enter file path:
find /C /I "%a%" %c%
cls
del "%a%" %c%
echo "%b%" >%c%
When run from my "comlist" directory (see "Adding commands to cmd" where Dbenham posts that he has a "Utils" directory that is part of the "PATH" environment variable that allows for the making of commands) it runs like a batch file. I want it to have syntax (see my other post of "REMing a command into another file).
Please help me, I have tried and cannot solve it with my current knowledge (I dare you to try and google it, there are so little answers on the internet available for us poor batch scripters )
Any help will be gladly appreciated,
Rileyh