EMule is automatically shut down after download and "cannot find the Script Engine VBScript" SOLUTION

Source: Internet
Author: User
Vbs script automatically shut down after Emule download is complete
Reposted from the blog
It's not a day or two to use the plug-in. Everything is fine, that is, there is no automatic shutdown function, and the remaining time of the eMule cannot be very accurate. If you want to use the shutdown command, it's time to finish it, if the Met file is shut down, it is still easy to damage. It's okay if you're late. I found it on verycd, saying that the automatic shutdown function will not be added in order not to violate the spirit of sharing. I am dizzy, how much electricity is wasted, in the name of environmental protection, hey, find the vbs script and make some modifications:
Dir = "E:/Temp"
Setfso = Createobject ("scripting. FileSystemObject ")
Cmd = "shutdown-s-f-t60"
Setws = wscript. Createobject ("wscript. Shell ")
Wscript. Echo "The eMule automatic shutdown script has been run ...... "
Count = 0
Dountilcount <-1
Chksize = FSO. getfolder (DIR). Size
Ifchksize = 0 then
WS. runcmd, 0
Endif
Wscript. sleep120000
Loop
Replace the above CodeSave as a text file, change the path in the first line of quotation marks to your own temporary eMule file directory, and change the suffix to vbs.
This script detects the temp folder every two minutes. If the Emule download is complete, the temp is empty, and the script executes the shutdown command 60 seconds after the shutdown.
When I executed the above script yesterday, I encountered the problem of "cannot find the Script Engine VBScript". It is suspected that the vbs script service item value may be broken after the registry is optimized.
Find the following solution on the Internet:
Step 1: Find the file C:/Windows/INF/wsh. inf and right-click "Install ";
Step 2: Start → enter regsvr32 VBScript. dll in the running line.
PS: Flash get cannot be directly selected on the webpage, and the items in the QQ hall cannot be selected. However, these two obstacles are not too great. I will not be able to optimize the registry in the future.
 

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.