- 1). Click the Windows "Start" button. Type "notepad" into the search text box and press "Enter." This opens your editor where you create your VBScript code.
- 2). Type the following code into the Notepad editor:
Set network = CreateObject("WScript.Network")
objNetwork.AddWindowsPrinterConnection "HP Printer 2600"
In this example, the HP Printer 2600 is installed on the computer. You can install any Windows device driver for a printer in your VBScript code. - 3). Click the "File" menu item and then click "Save As." Enter a name for the file and enter a ".vbs" extension into the file name. The "vbs" file extension tells Windows to execute the file instead of opening it into a text editor.
Related Posts "Technology"
You might also like on "Technology"
How to Burn a VOB to a DVD
7/10/2019 5:22:00 PM
How to Burn MOV & AVI Files to CDs & DVDs
7/10/2019 4:43:00 PM
How to Defrag a Computer If it Says CHKDSK
7/10/2019 3:56:00 PM
SEO In Miami- How To Increase Your Site's Traffic & Convert Them To Buyers
7/10/2019 3:03:00 PM
How to Use ImgBurn to Make Music CDs
7/9/2019 10:36:00 PM
Overheating Central Processing Unit Solutions
7/9/2019 10:16:00 PM
How to Find My CPU Speed
7/9/2019 8:10:00 PM
Finding the Perfect Notebook for Students
7/9/2019 7:29:00 PM
How to Turn On "Num Lock" on a Laptop
7/9/2019 5:13:00 PM
How to Play the Korg Wavestation With My PC Keyboard
7/8/2019 4:33:00 PM
Solution for Your Keyboard Issues
7/8/2019 4:26:00 PM
How to Backup an HD DVD
7/8/2019 2:11:00 PM