What's the deal with having programs write to theirselves? I read somewhere that it crashed early computer systems which were programmed to update theirselves, but now it is possible, but still getting the program to choose a command line is tough. For example if we examine the following program:
1 print line 2, "run"
2 end
then we can have a program run itself instead of ending and it has done this itself. If we could somehow question the computer and have it choose a line to run then it would be running itself. I have wrote a batch program which follows these lines:
copy c:\folder\filename$.txt c:\folder\filename$.bat
*call filename$.bat
and now when I open up the .txt file and save modifications the program is run live. I could do with an autosave. Does anyone know how this would work in a batch program?
The above program looks better like this:
cls
prompt $t
copy c:\folder\filename$.txt c:\folder\filename$.bat
type c:\folder\filename$.bat
*call filename$.bat
1 print line 2, "run"
2 end
then we can have a program run itself instead of ending and it has done this itself. If we could somehow question the computer and have it choose a line to run then it would be running itself. I have wrote a batch program which follows these lines:
copy c:\folder\filename$.txt c:\folder\filename$.bat
*call filename$.bat
and now when I open up the .txt file and save modifications the program is run live. I could do with an autosave. Does anyone know how this would work in a batch program?
The above program looks better like this:
cls
prompt $t
copy c:\folder\filename$.txt c:\folder\filename$.bat
type c:\folder\filename$.bat
*call filename$.bat
Last edited: