I have got this exception
System.IO.FileNotFoundException: ''\DESKTOP-4RSBKAU\GC420t' file not found.'
while trying to execute the below code in vb.net
FileCopy("C:\Users\odeni\Documents\kairos\ada dispensing\ADASoft\label\etkdeneme3.prn", "\\DESKTOP-4RSBKAU\GC420t")
I'm trying to send the file to Zebra label printer. "\DESKTOP-4RSBKAU\GC420t" is the name of shared printer. When the code executed although the printer prints the label, the exception occurs.
Copy the same file to the same shared printer in command line works fine
Waiting for your kind advices and thoughts
I use this on an app i'm developing to print a EPL file format, first import
System.IOat the top of your code (before class)Then make a Try.. Catch using this
In my case, i'm using a shared printer on my pc, so i set remotepath as
\\localhost\printer-name