The "batch file" is called shell script. You can make one by creating a file:
nano my_script.sh
Then paste this in:
#!/bin/bash
./xptminer-sse4-b15 -o http://ypool.net -u . -p -t 4
then make it executable:
chmod +x my_script.sh
------------
As for the miner error: maybe you lost the executable switch when copying. Try the chmod +x on that file to....
hope this helps