Nice, this is in C#

File.WriteAllBytes(fileName, new byte[]{ 27, 112, 0, 25, 250 });
File.Copy(fileName, networkSharedPrinterPath);