simulate copy command

  • Thread starter Thread starter J M
  • Start date Start date
J

J M

How do I run following from csharp from "server"?

copy file.txt \\server\printer1

Also how can I submit a text file print job to local print queue "printer1"?
Assuming I run copy command from server.

TIA!
 
File.Copy("C:\file.txt", \\Server\file.txt)

You can also check out the FileInfo class...

HTH,

Bill
 
Back
Top