Urgent help required: Run-Application Batch file with Administrator privileges does not result in anything.

Ask general questions here.
tanujg
Posts: 1
Joined: Fri Apr 02, 2021 2:05 pm

Urgent help required: Run-Application Batch file with Administrator privileges does not result in anything.

Post by tanujg » Fri Apr 02, 2021 2:20 pm

Hi,

I am have multiple batch files which I am using in my recordings under the 'Run Application' Action. These files require Administrator privileges to run.

I start-up Ranorex Studio 'Run as Administrator' for my execution and I am able to run all the files successfully, though some of the files does not result in anything. If I run these same files as Administrator (Not through Ranorex), they behave as they are supposed to, so I am certain the files are scripted correctly. These files have some registry edits in them. I want to execute these scripts through Ranorex.

Please help.

doke
Posts: 15
Joined: Fri Mar 29, 2019 2:33 pm

Re: Urgent help required: Run-Application Batch file with Administrator privileges does not result in anything.

Post by doke » Tue Apr 06, 2021 7:10 pm

create a shortcut for this batch file, and set the run as property in advanced should do it
google:automatically run batch script as administrator