I wana to eject cd/dvd if some one try to copy from the cd/dvd (batch file)
That would make the disk useless, since legitimate data reads would also trigger ejection.
prevent them to make a copy using programs like nero ( batch file )
Only have a CD/DVD-ROM drive on the computer or uninstall all optical disk writing software and lock down the machine with security policies. (Is this what you are really asking about?)
If you mean prevent execution of batch files, then again you need to set up proper security policies.