How to access a shared folder on the network with password in windows using python

Asked

Viewed 91 times

0

I have a program made in python that accesses my usb printer and then I have it print something, I’m trying to make my program access this connected printer on another computer sharing it on the network, however when I try to give permission denied, most likely, because the computer he is trying to connect has password, so I would have like to add the computer credentials to gives this permission all by python?

from escpos.printer import File

print("Teste")
porta  = "\\\\192.168.0.153\\epson"
t20 = File(porta)
t20.set(align='center')
t20.text("Ticket\n")
t20.barcode("978020137962", 'EAN13', 70, 3, '', '')
t20.cut()
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.