Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
'On Error Resume Next
Dim objShell, objFolder, objFile
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.NameSpace("c:\temp")
Set objFile = objFolder.ParseName("test.txt")
objFile.InvokeVerb("Print")
Option Explicit
'On Error Resume Next
Dim objFSO
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.CopyFile "c:\temp\test.txt", "\\server\printer"
Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
Dim WshShell
set WshShell = CreateObject("wscript.Shell")
strDefaultPrinter = "\\[PrintServer]\[PrintShare]"
strPrintFile = "[File name with full path]"
'Example strPrinFile = "C:\Myfile.txt"
WshShell.Run ("[Application] /P " & strPrintFile)
'Example WshShell.Run ("%SystemRoot%\system32\notepad.exe /P " & PrintFile)