Actually, I just found this and you don't need the module for it:
ParamForApp = " /C lpr -S (printer IP Address) -P raw -o i " & Sourcename
AppToRun = "C:\WINNT\System32\CMD.exe"
x = Shell(AppToRun & ParamForApp, vbHide)
The sourcename is just the name of the file...in my...
I have inherited a program from a Senior program that I think does what you want to do??? Here goes:
AppToRun = "C:\WINNT\System32\CMD.exe"
'//set Command Line Parameters
'//The "/C" Tells Windows to Run The Command then terminate
'//The Command Line (CMD.exe)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.