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.