Why doesn't this batch file work for me?
Posted
by
asdfg
on Super User
See other posts from Super User
or by asdfg
Published on 2011-02-24T21:26:33Z
Indexed on
2011/02/24
23:27 UTC
Read the original article
Hit count: 222
batch
|programming
The following batch file is not woking.
Can anyone help me with this?.@echo off
python -c "print('echo text')" > %TEMP%\test.bat
call %TEMP%\test.bat
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.
© Super User or respective owner