Instruction
1
Run the file with the extension *.vbs by double-clicking or calling it by name in the console. To do this go to start menu/run and type the path to the necessary file in the opened window. This is the most common text document that you can easily edit in Notepad. This method is the most intuitive and simple, but sometimes due to certain circumstances he is not working (system does not support the format, flew encoding, etc.).
2
If a file with the extension *.vbs doesn't open, check availability of interpreters VBS. Them should be two: the console window WScript and CScript (together they are Windows Script Host or WSH). They, on idea, should immediately be installed together with the system, but it sometimes turns out that they are either damaged, or not installed (can be on old versions of systems). If interpreters are not available, install them to your computer and run the script by double-clicking.
3
Create an ordinary text file with a. txt extension. Copy this text:Sub Run(ByVal sFile)Dim shellSet shell = CreateObject("WScript.Shell")shell.Run Chr(34) & sFile & Chr(34), 1, falseSet shell = NothingEnd SubRun "C:/Program Files/FileZilla FTP Client/filezilla.exe"of Course, replace the path to its executable. Then rename the previously created. txt file to vbs extension. To check double click it with the mouse, and the specified path will execute the program.
4
In order to access a method of the Windows Script Host, specify the object and method with the necessary parameters (through the point). The properties of the WSH point also, but it is possible to assign and to read variables and other properties. Always consider the data type properties and variables, otherwise the script will give an error about incompatible data types.