Several Methods for running batch processing with win 7 administrator privilege

Source: Internet
Author: User

Don't talk nonsense. Solve problems such as failure to register DLL during batch processing in win7.

1. Add the following to the first line of batch processing:CD/d % ~ Dp0Right-click the batch and choose run as administrator.

2. Right-click the taskbar and select resource manager,ProcessTab,Displays the processes of all users,End explorer, file-new task explorer, select"Create this task with administrative privileges ".After the desktop display is complete, you can directly double-click the batch operation.

3. Use a third-party elevation tool, such as elevate, to use elevate-C regsvr32 demo_doreg.dll
This method requires that you addElevate-C, a third-party tool suitable for one or fewer requests for Elevation of Privilege.
Http://code.kliu.org/misc 

4. UseBAT to EXE converTER 1.51Convert batch processing to exe.If you have the option, you can select the admin permission.When using this software, it is best to turn off the 360 and other software kill, because the software seems to require UPX shelling.
Http://www.softpedia.com/get/System/File-Management/Batch-To-Exe-Converter.shtml

Items 1 and 4 are suitable for distribution to other personnel for deployment, and 2nd items should be kept at the bottom of the press box by yourself.

--------------------------------------------------------------

Win7The following problems may occur when you use batch processing to register DLL.

1. The module has been loaded, but the call to the dllregisterserver failed, errorCode0x80040201
Cause: You can use the Administrator permission to register the DLL.

2. The following error may occur when you right-click an administrator:
Failed to load the module. Make sure that the binary is stored in the specified path or debug it to check whether the binary or related. dll file is faulty. The specified module cannot be found.
Cause: the default command line (batch processing) of the Administrator in win7 is the System32 folder.

Solution: followArticleThe first one at the beginning of the statement can be solved.
Of course, you can also use solutions such as 2, 3, and 4.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.