win 执行puppet

 

 

 

 C:\scripts\win_exec_proxy.bat  \\adsoft.base-fx.com\puppet\puppet\files\Windows_10_x64\C\user\logon\add-account-for-thunderbird.py

win_exec_proxy.bat

@echo off

goto win_proxy %1

:win_proxy %1
set ext=%1
set ext_name=%ext:~-3%
if "%ext_name%" == "bat"  if exist %ext% call %ext%
if "%ext_name%" == ".py"  if exist %ext% c:\Python2.7.5\python.exe  %ext% 2>>/Log/scheduled_task.log
:end

 

posted @ 2018-03-14 15:31  hjfjesse  阅读(115)  评论(0编辑  收藏  举报