simulate copy command  
Author Message
jbsand





PostPosted: Sun Dec 21 15:36:34 CST 2003 Top

Visual C#.Net >> simulate copy command 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!

DotNet42  
 
 
William





PostPosted: Sun Dec 21 15:36:34 CST 2003 Top

Visual C#.Net >> simulate copy command File.Copy("C:\file.txt", \\Server\file.txt)

You can also check out the FileInfo class...

HTH,

Bill
"J M" <EMail@HideDomain.com> wrote in message
news:GvmFb.3523$EMail@HideDomain.com...
> 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!
>
>


 
 
J





PostPosted: Sun Dec 21 16:37:28 CST 2003 Top

Visual C#.Net >> simulate copy command Thanks!

"William Ryan" <EMail@HideDomain.com> wrote in message
news:EMail@HideDomain.com...
> File.Copy("C:\file.txt", \\Server\file.txt)
>
> You can also check out the FileInfo class...
>
> HTH,
>
> Bill
> "J M" <EMail@HideDomain.com> wrote in message
> news:GvmFb.3523$EMail@HideDomain.com...
> > 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!
> >
> >
>
>