We have a problem on one PC, which seems not to be honouring arguments in .bat scripts, i.e. not passing them on to invoked python scripts. It works fine on 10 or so other very similar machines.
We have a bat script like this:
@REM Just pass all arguments directly to the python script of the same name
@%~dpn0.py %*
On this one PC, it seems that the arguments don't get passed on to the python script being invokved.
This idiom is used all over the place in our build spaces - and we can't work out why it fails on just one machine.
Are there any suggestions as to the cause, or how we might debug the issue, please?
- OS: Windows 7 Pro, 64-bit
- Python version: 2.7.6
echo %*
instead of calling your Python script and passing the parameters? Are you able to see all the arguments? Have you reached the 8191 command line limit as explained here? support.microsoft.com/kb/830473