Sign in with
Sign up | Sign in
Your question

What is your preffered automation software/language?

Last response: in Apps General Discussion
Share
November 5, 2012 1:28:41 PM

I am investigating scripting our office's computer imaging process and was hoping you guys could help. My main issue is ensuring the computer has completed its task before giving it more commands. (windows update, serial verification, etc.) Is there a good way or even a hacky way to get around this? I am currently trying to use autohotkey to do this.

Any advice appreciated
Thanks
November 6, 2012 3:18:44 AM

For something trivial you can write a batch file in a couple of minutes. I wouldn't be able to give you much feed back on writing batch files, (I am a C++ guy) but most programming languages have some form of exception handling built into them, in c++ it would look something like this in pseudo-code.

class run next program
{
exception class{}; // left blank

run next task method
{
if current task isn't complete throw exception class;
code to run your current task
}
};

try
{
run next task
}
catch (current task running)
{
return your error code in this statement block
}
m
0
l
!