I'm learning about printing a file in python. I found many ways to do this, One of the most common ways I've seen is using the win32api
module.
import win32api
win32api.ShellExecute(0, "print", path_for_file , None, ".", 0)
When I run this program, the file gets printed without any problems.
But the thing is that I'm not understanding what is actually going on in the win32api.ShellExecute()
function and what are the functions of it's arguments. By arugments, I mean this: (0, "print", path_for_file , None, ".", 0)
Can anyone please explain what does each and every argument inside the win32api.ShellExecute()
function do?
It would be great if anyone could help me out.