Automation to restart the system??

Ask general questions here.
Posts: 24
Joined: Thu May 14, 2009 2:06 pm

Automation to restart the system??

Post by sunitha » Wed Jun 03, 2009 7:37 am

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???? :)

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Post by Support Team » Wed Jun 03, 2009 9:13 am

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 ... -t835.html

Ranorex Support Team