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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top