Tuesday, July 27, 2010 4:30 AM
Wednesday, July 28, 2010 3:54 AMModerator
You question is off-topic here this forum is MSBuild, so next time; please post it in proper forum.
As what you have already said, the exception means you don’t have enough rights to perform the operation; you need to launch it as administrator.
To run our bat as administrator, one way is to create a short cut, and then set the short cut to be run as administrator.
See this link for detail http://www.vistaclues.com/run-a-batch-file-as-an-administrator/
To use command line you could use Run as to start your bat file, see this http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/runas.mspx?mfr=true
- Marked As Answer by Chao KuoModerator Tuesday, August 03, 2010 1:57 AM