The .vbs file is a file with the .vbs suffix, as shown below: If we want to open the file, we can use two methods to open it. Let’s introduce each one below. [Recommended reading: What is .vbs file】
1. Double-click directly Run
test.vbs is a file just written by the editor using Notepad. The content of the file only contains one line of code: msgbox "Welcome to use vbs script!". Under normal circumstances, double-click the file. It will run as shown in the figure below, and an information prompt box will pop up.
2. Run under the command line
In addition to double-clicking the file to run, you can also run the file under the command line. Method: wscript //e:vbscript test.v //e:vbscript test.vbs. If the current directory of the command line window is not in the same directory as the vbs file, the path needs to be added before the vbs file to ensure that the command can find the vbs file.
If neither of the above two methods works properly, the file type link may have been changed, or the wscript.exe file may be damaged or missing.
The above is the detailed content of How to open .vbs. For more information, please follow other related articles on the PHP Chinese website!