Why doesn't this batch file work for me?
- by asdfg
The following batch file is not woking.
@echo off
python -c "print('echo text')" %TEMP%\test.bat
call %TEMP%\test.bat
Can anyone help me with this?.
edit:
I needed unix eval functionality in windows. I could not find a direct way though.
So I redirected the eval string to a temporary batch file and executed it. The temporary batch file was successfully created but calling it did not work in the above case.
I noticed that any command after the test.bat creation did not work.