Question: How do I run a batch file from another batch file with administrator rights?

I have tried the [RUNAS](http://ss64.com/nt/runas.html) command, but it requires the administrator password.

I am searching for an alternative for running a batch file by right clicking on it and running as an administrator. I want to automate it from another batch file.

Answer: 
Use

```
runas /savecred /profile /user:Administrator whateveryouwanttorun.cmd

```

It will ask for the password the first time only. It will not ask for password again, unless the password is changed, etc.
This a trick that i used if anyone wants they can try this in batch file.This will give you the admin prompt when you run the batch file 

```
@echo off
cd \ && cd windows/system32 && command which needs admin credentials
pause

```