cd /d F:\Translated\DocsForPOST
for %%f in (*.json) do (
if exist %%f (
script.py POST list of params here
)
IF %ERRORLEVEL% EQU 0 (
move %%f F:\Translated\DocsForPOST\archive
)
)
I have this code that I'm trying to move a file ONLY if the .py doesn't throw an error, and if it does just leave the file in place. This isn't working for me, and I'm not sure why. Any insight is appreciated.