473,387 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

simulate copy command

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!
Nov 15 '05 #1
2 4097
File.Copy("C:\file.txt", \\Server\file.txt)

You can also check out the FileInfo class...

HTH,

Bill
"J M" <JM@jm.biz> wrote in message
news:Gv*****************@newssvr23.news.prodigy.co 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!

Nov 15 '05 #2
J M
Thanks!

"William Ryan" <do********@nospam.comcast.net> wrote in message
news:um**************@TK2MSFTNGP11.phx.gbl...
File.Copy("C:\file.txt", \\Server\file.txt)

You can also check out the FileInfo class...

HTH,

Bill
"J M" <JM@jm.biz> wrote in message
news:Gv*****************@newssvr23.news.prodigy.co 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!


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: saeed | last post by:
hello I need a php file to simulate "ftp server" in port 80. (NO web based ftp) I want to connnet to my "php ftp server" with client program like "cuteftp" but in port 80. for example ftp...
2
by: Amir Eshterayeh | last post by:
simulate virtual directory for each user Dear Friends Would you please give me your professional idea about this asp.net problem. I need different virtual directory for different customer...
10
by: JustSomeGuy | last post by:
I need to log into a web page automatically. The web page has a password text field and a login button. (A form?) How do I simulate that a user logged in and entered the password and pressed...
4
by: Minfu Lu | last post by:
Hi Folks, I have a VB6 project moved to C+.NET. I got some problem with GDI+. 1. VB6 forms have a Autodraw property which allows the Windows to repaint it automatically. But there is not so...
2
by: sandro72 | last post by:
hi, i need to simulate the right mouse click and choose an option. i want to use (in .net) the option "print" that appear when i right-click on ..doc file and be able to change the printer before...
1
by: Knepper, Michelle | last post by:
Hi out there, I'm a first-time user of the "Copy ... From..." command, and I'm trying to load a table from a text flat file. http://www.postgresql.org/docs/7.4/static/sql-copy.html I don't...
4
by: Jon Asher | last post by:
Hi, I'm trying to do a simple import of a comma delimited text file with COPY but it's returning an error. The file has been granted all permissions in Linux, so it's not clear to me what the...
1
by: Rachel McConnell | last post by:
Hi, I am trying to import data using COPY, from a file containing thirty or so COPY commands each with 0 or more rows of data. Reason, I have a small data set I want to include into a database...
8
by: Doug Marquardt | last post by:
Hi All: I want to simulate VB6 Autoredraw in VB.Net I figure I would probably have to create a memory dc, paint to that, and then create a bitmap based on the dc and copy that image into a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.