473,750 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

simulate copy command

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

copy file.txt \\server\printe r1

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 4117
File.Copy("C:\f ile.txt", \\Server\file.t xt)

You can also check out the FileInfo class...

HTH,

Bill
"J M" <JM@jm.biz> wrote in message
news:Gv******** *********@newss vr23.news.prodi gy.com...
How do I run following from csharp from "server"?

copy file.txt \\server\printe r1

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********@nos pam.comcast.net > wrote in message
news:um******** ******@TK2MSFTN GP11.phx.gbl...
File.Copy("C:\f ile.txt", \\Server\file.t xt)

You can also check out the FileInfo class...

HTH,

Bill
"J M" <JM@jm.biz> wrote in message
news:Gv******** *********@newss vr23.news.prodi gy.com...
How do I run following from csharp from "server"?

copy file.txt \\server\printe r1

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
6140
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 server like this: http://www.mysite.com/test/ftp.php if you have any info, exmample, likn, please ... ???
2
1802
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 with their names like these: www.oursite.com/Jack www.oursite.com/Sue
10
2753
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 the login button? TIA.
4
2147
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 property of forms in C+.NET. If any part of a form is covered by another form and when the second one moves around the first form, the content (some 3D color mesh, lines and texts for example) of the covered form disappears. Redrawing the covered form...
2
1789
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 and after the print. can i launch word from command line forcing it to print a document? thanks
1
5627
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 know if I'm using the command correctly. Question: I run this command as a superuser, and the "copy from" command is run like a SQL command on the command line, correct?
4
7039
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 problem is. Version 7.41 is installed... see below for details: A comma delimited text file has been placed in a local directory with permissions set to allow any user to read or write to it: /root/Desktop/server_transfer/WorldPoints_v2.txt'
1
3540
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 with an identical schema, with existing data. I figured a good way to do this would be to use pg_dump on the small dataset, trim out the table definitions and constraints, and run the resulting file. (I also reordered the COPY statements to...
8
2675
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 bitmap, and then assign that to the image property of my control? If so, then can someone push me in the right direction
0
8999
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9394
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8260
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6803
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4712
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.