Page 1 of 1

Automation to restart the system??

Posted: Wed Jun 03, 2009 7:37 am
by sunitha
I have installed an application and i need to restart the system. How can i automate this scenario using Ranorex.

Soon after restart i need run the ranorex application whcih does some functionality like invoking the Webdocument.

Can you let me know how to automate this???? :)

Posted: Wed Jun 03, 2009 9:13 am
by Support Team
Hello sunitha,
there are several ways to automate a restart with Ranorex.

- in code call: e.g. in VB.NET

Code: Select all

System.Diagnostics.Process.Start("shutdown", "-r -t 00")
- automate click on start button -> shutdown -> restart

- over the cmd shell: shutdown -r

For starting automation code after reboot:

- simply include your automation app in the autostart folder
e.g. windows xp english:
C:\Documents and Settings\cschmid\Start Menu\Programs\Startup

- or use the runonce registry key: discussed earlier
http://www.ranorex.com/forum/installati ... -t835.html

Regards,
Christian
Ranorex Support Team