Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

How to run Command prompt always as Administrator in Windows

Q. How to run Command prompt always as Administrator in Windows?

Recently while working on one of the assignment on Windows server, I used to run command prompt always as Administrator. Every time I was following same old steps (i.e. Right click on command prompt short cut, then select "Run as Administrator" option). I didn't like it and then decided to find better option.

I tried couple of options and found one solution. Using it now whenever I run command prompt on my server it always runs as Administrator.

There might be many other options or solution to solve this problem but I found this one very simple and effective.

Steps to run Command Prompt always as Administrator are as follow:

1. Right click on the Command prompt shortcut and select "Properties" from the menu.












2. Go to "Shortcut Tab and click on "Advanced..." button




























How to Hide Any Open Application Window during the Automation?




Q. How to hide Application Window during the automation?

During the development of my one of the projects I wanted to hide Firefox web browser window.

I was using HtmlUnitDriver to automate something but using it we cannot hide any web browser window, i did some research and some across one very good tool called AutoIt , It has all the capability to handle windows.

We can perform all kinds of operations using AutoIt.

Let me tell you how we can implement utility which can help us to Hide and again show any application window. Please follow below steps one by one.

1. You have to first install AutoIt, it is free. download from here

2. Open the Editor and write below code for Hiding any window.

Continue Reading >
Related Posts Plugin for WordPress, Blogger...
Powered by Blogger