Skip to content

Commit

Permalink
Add script that reads Dropbox file and calls bettybot
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmacroh committed Feb 22, 2018
1 parent b68abae commit 55bd437
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions hriScript.ps1
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 55bd437

Please sign in to comment.