Новости | FAQ | Авторы | Документация | В действии | Библиотека |
Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Larrikin 23.12.2012 18:18
@echo off cls echo Running %0 echo current dir is %~dp0 parser3.exe ./master.p echo. pausemaster.p
@main[] ^logtime[]: Master script started $list[^file:list[./;\d+.p^$]] ^logtime[]: files ^list.count[] ^if($list){ ^list.menu{ ^logtime[]: starting launcher for $list.name $f[^file::exec[launcher.bat;;1.p]] $f.text } }{ no slaves :( } @logtime[][now] $now[^date::now[]] $result[^now.sql-string[]] @postprocess[body] ^if($body is string){ $result[^taint[optimized-xml][$body]] }{ $body }launcher.bat
@echo off if not exist "%1" goto error_exit set PATH_INFO= set SCRIPT_NAME= set PATH_TRANSLATED= rem set SCRIPT_FILENAME= rem %ComSpec% /D /C parser3.exe rem start /d D:\Parser /b dir parser3.exe 1.p goto end :error_exit echo file not found :end1.p
@main[] $result[field:value]