Thursday, 15 August 2013

python - batch file to enter commands in the prompt -



python - batch file to enter commands in the prompt -

i wanted write bat file in next commands

python print "hello"

i wanted work open python command utility , execute

print "hello"

if above 2 commands written in bat file python command utility getting opened , waiting after terminate manually,the next command getting executed there way can redirect above print "hello" command python command utility

i know can write separate python file print "hello" , phone call straight by python filename.py requirement redirection have mentioned above

any help in regard appreciated in advance!!!

i believe need utilize python -c command, followed code wish execute. code need enclosed in quotes or double quotes (i believe depends on whether wish utilize multi-line commands).

python windows batch-file

No comments:

Post a Comment