Thursday, June 6, 2013

Tip: bat or exe file not running in Windows Task Scheduler (Windows 8)?

Solution:
In order for a task to run successfully using the Windows Task Scheduler, it's important to set the "Start in (Optional)" text box of the task. If you are using the schtasks.exe command to run the task, you can include the "V1" switch so that the mentioned text box is populated automatically. The picture below shows a pre-populated task action using the schtasks.exe.

Monday, June 3, 2013

Tip: How to open a project with Visual Studio in administrator mode?

It's a pain in the ass when have to open a Visual Studio project that is set to run on local IIS and Visual Studio Visual Studio will always complain the lack of permission if the project is opened through double clicking the associated project file in Windows Explorer. The workaround to the problem is to change the windows registry so that every time a Visual Studio associated file is double clicked, it will open the Visual Studio in Administrator context, thus able to modify the IIS metabase. Below is a screen shot of an example which enable VS2010 and VS2012 to run in administrator mode.