In Linux your input and edit can be achieved with a couple of lines of shellscript. In Windows you will need to write a VB, VBA or KiXtart program, or find a utility to perform simple string replacements. The tool [b]ACSR.exe[/b] is apparently part of the Terminal Server Resource Kit, but there are free utilities like the [b]Swiss File Knife[/b] http://stahlforce.com/dev/index.php?tool=filter.
Here is a batch file that will prompt for the date and copy your batch file template to the output file, replacing strings #year# and #date# with your input:
[pre]
@echo off
set /P year_in=Enter year yyyy :
set /P month_in=Enter month mm :
set /P day_in=Enter day dd :
set my_date=%year_in%-%month_in%-%day_in%
@echo The date is %my_date%
@echo press Enter to continue
@echo ... or Ctrl-C to stop the edit job
pause
acsr.exe "#year#" "%year_in%" W:\my_template.txt W:\temp_file.txt
acsr.exe "#date#" "%my_date%" W:\temp_file.txt W:\actual_script.cmd
[/pre]
Two passes of the input file are required. If you use [b]Swiss File Knife[/b] ,you can specify both string replacements in the same command line.