Welcome!

Seems like it will work OK.. Couple of comments that will make future scripting a tad smoother..

"SendKeys" is a function. There should not be a space between the function name and the "(". Kix is forgiving, but other languages aren't, so it's better to be a bit more strict when you're learning. Compare the SendKeys and SETOPTION lines.

"C:\Program Files" should (like many other system parameters) be referred to by the appropriate system variable - "%PROGRAMFILES%\path..." - this will work anywhere..

My personal preference - use single quotes in Kix - makes it easier to embed double quotes into Shell commands, since DOS commands require double quotes.

Be consistent in how you specific commands / functions..
thiscommand / thatfunction
ThisCommand / ThatFunction
THISCOMMAND / THATFUNCTION

It's all about readability. I even ID my varnames - $LocalVar vs $GLOBALVAR vs $_FunctionVar.

Break on might come first, right after what Lonk refers to as "the mumble" - the things you write at the top to ID your script/author/version etc.. ;\)

Glenn

PS - you'd get a passing grade in my class - these are minor things - more suggestions to develop your own style, which will help you to read and support them in the future.
_________________________
Actually I am a Rocket Scientist! \:D