windows - how to run the python script from batch command? -


@echo off setlocal enabledelayedexpansion set error=0 #set test_lang=eng ged  subst /d h: 2>nul net use h: /delete /yes 2>nul net use h: \\10.165.128.44\_ance_7" 2>nul  if not exist h:\ (     echo [error] problem mounting s: drive! cannot start test!     goto end ) verify > nul h:      echo.     echo running framework_errors_with_ids.py      call python framework_errors_with_ids.py -l      if not "%errorlevel%"=="0" echo errorlevel %errorlevel%     if not "%errorlevel%"=="0" set error=1   :end exit /b %error% 

the above .bat code. mounts server drive h , later calls python script. below python script framework_errors_with_ids.py : searches .log starts vcalogparser_output name. later checks scenario failed, if writes test case id output file. working fine without batch command on pc. if mount server pc , run batch command executing , printing empty output.txt. can me ?


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -