hello ! why keil can't execute python script on before build/rebuild user command , he can only execute batch file
The "DOS" command line runs .EXE or .BAT files, not other random files and scripts. If Keil can spawn() it then it will run, otherwise not. Run the interpreter and have it load your script.
should i read my python script with a batch one ?
You still haven't said why it was failing - what error message(s) are you getting?
You also haven't showed exactly what command you had configured.
Remember that we don't have access to your computer; we can't see this stuff - so it's up to you to provide full information!
the error message am getting is "CreateProcess failed, Command..." and about the commannd i mentionned it am adding a python script to "Before Build/Rebuild"
IS that the complete message?
How, exactly, are you 'adding a python script to "Before Build/Rebuild"' ?
Show exactly what you have entered in the box.
Again: remember that we don't have access to your computer; we can't see this stuff - so it's up to you to provide complete information!
Yes, add the python script BUT MAKE SURE YOU PUT py in front of it like this
py "python script name"
This will execute a python script.
If you do not put the py in front of it you will get
*** Error: CreateProcess failed, Command: "filename"
unless that is what you want, put the py in front of it.