From 55bd437853cb566242ba14c49daa4f7b7e0a2df5 Mon Sep 17 00:00:00 2001 From: dtmacroh Date: Wed, 21 Feb 2018 17:24:10 -0700 Subject: [PATCH] Add script that reads Dropbox file and calls bettybot --- hriScript.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 hriScript.ps1 diff --git a/hriScript.ps1 b/hriScript.ps1 new file mode 100644 index 0000000..596da75 --- /dev/null +++ b/hriScript.ps1 @@ -0,0 +1,16 @@ +#Declare Variables +$SearchDirectory = "C:\Users\dtmacroh\Dropbox\IFTTT" +$SleepTime = 5 + +Do { +Start-Sleep -Seconds $SleepTime +$FileCheck = Test-Path -Path "$SearchDirectory\runRobot.txt" +} +Until ($FileCheck -eq $True) + +Remove-Item -Path "$SearchDirectory\runRobot.txt" + +$cmdPath = “C:\Program Files\MobileRobots\ARIA\bin64\bettybot.exe" +$cmdArgList = @("-rp", "COM4") + +& $cmdPath $cmdArgList \ No newline at end of file