I need to create a .bat file that a pymel script calls, I currently have this as my bat file:
PATH C:\Python26
python
from PIL import ImageGrab
import time
time.sleep(5)
ImageGrab.grab().save("screen_capture.jpg", "JPEG")
It stops reading the bat file at python
and doesn't go any further.