← Back to team overview

sikuli-driver team mailing list archive

[Question #261486]: Stopping/Starting Sikuli from batch file

 

New question #261486 on Sikuli:
https://answers.launchpad.net/sikuli/+question/261486

I have two Sikuli scripts that both run fine individually. The first runs a repeated process and the second sorts the results of the first process.

I would like to be able to run the first overnight and then have a Windows scheduled task quietly stop the first script, kick off the second script and then, after the second has completed, create and move the files to a dated folder (working), generate empty files (working) and restart the first again.

Currently, here's what I have:

@echo off

taskkill /IM chrome.exe >nul
taskkill /IM java.exe >nul  ---- not sure if this is how I should stop Sikuli or not

SLEEP 15

start z:\runIDE.cmd -r Z:\Sorting.sikuli

SLEEP 7200

set curr_date=%DATE:~10,4%-%DATE:~4,2%-%DATE:~7,2%
echo %curr_date%"

mkdir %curr_date%

copy *.txt %curr_date%%

copy NUL Codes.txt
copy NUL goodcodes.txt
copy NUL nomatch.txt
copy NUL notvalid.txt
copy NUL unchecked.txt

start z:\runIDE.cmd -r Z:\codes.sikuli


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.