Category:VBS
-
Time:2021-3-8
Install.vbs Publisher: Microsoft Corporation script expert This script is started by “Scenario1. VBS” on a network host. Install.vbs It can be run locally on a host with SP2 installed, which performs the following tasks: ? run SP2 setup from a remote server. Set “autoadmin” and “RunOnce” on the host. ? record the results to the […]
-
Time:2021-3-6
Q:Hello, script expert! How to judge whether a date is in a specified period of time? — JW A:Hello, JW. What a coincidence. On our way to work this morning, we heard different advertisements from two different companies. They used “Christmas in July” to attract customers. This prompted us to answer your question as soon as […]
-
Time:2021-3-5
Q:Hello, script expert! In your “HTA” example, you showed us how to click a button to make a subroutine run. So, how to add two or more subroutines to the “onclick” parameter of a button? — FM A:Hello, FM. As you know, there is an interesting branch of cognitive psychology called question discovery, whose theory is […]
-
Time:2021-3-4
Q:Hi, script expert! This is the task I want to accomplish: I want to start two executable files with one script. After the first application is closed, I want this script to close the second application and exit. How to accomplish the above tasks? — MK A:Hello, MK. You know, this is the kind of question […]
-
Time:2021-3-3
Q:Hi, script expert! How do I add lines to the top of a text file? — FT A:Hello, ft. You know, at one point in Sir Arthur Conan Doyle’s career, he actually killed Shylock Holmes. He thought he had finished everything he could about the great detective. The public outcry soon changed his mind, and he […]
-
Time:2021-3-2
Q:Hello, script expert! I have a text file that contains a list of computer names. How to sort the file alphabetically?— LR A:Hello, LR. If you want to be lazy, we will tell you: “sorry, you can’t do that.” We can also get away from this, because there is no way in Microsoft’s scripting technology to […]
-
Time:2021-3-1
Q:Hi, scripting guy! I have a series of “word” files. I want to open each of these files and save them as plain text files. Is there a way to do this by using scripts? — CG A:Hello, CG. Yes, it’s easy to do that with a script. In fact, with very few exceptions, you […]
-
Time:2021-2-27
Q:Hi, scripting guy! Is there a simple way to find out which programs have been downloaded for Internet Explorer (these items are in the folder “C):” Windows / downloaded program files “? I can use a script to get the executable file name and dependency file, but I want to get the file name that […]
-
Time:2021-2-26
Q:Hi, scripting guy! In the command prompt, you can execute the command “copy” a.txt + b.txt ab.txt ”To extract the contents of ﹣ a.txt ﹣ and ﹣ b.txt ﹣ and merge them into a ab.txt In the new file. Can I use scripts to do the same? — DL A:Hi, DL. In yesterday’s column, we talked […]
-
Time:2021-2-25
Q: Hi, scripting guy! How do I configure a local user account so that the user cannot change his password? — DC A: Hi, DC. The secret lies in the mysterious userflags attribute. We’ll show you how to set up a user account so that users can’t change their password, and then we’ll show you […]
-
Time:2021-2-24
Q:Hi, scripting guy! I want to run the script on all the computers in a subnet. Is there any way to accomplish this task without having to hard code all IP addresses into the script? — RB A:Hi, Rb. According to your description in the email, it seems that your settings are similar to: the IP […]
-
Time:2021-2-23
Q:Hi, scripting guy! How do I grab a URL from the clipboard and open the web site in my browser? — CL A:Hello, CL. These are very interesting questions, or we should say, these are two very interesting questions. Because you actually asked two questions. The first question is simple: can I use a script to […]