English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hi! I want to create a deployment application which copies files without registry entries (unlike Setup.exe). . but I don't know the copy function of C#.

Else tell me other way out. . . Plz

2007-06-29 07:45:21 · 3 answers · asked by Parv 2 in Computers & Internet Programming & Design

Thanks for ur answer, but I need a program to do that.

2007-06-29 08:12:41 · update #1

3 answers

There are many ways to do so. Some of which are:
1) You can simply, use ctrl+c (press ctrl & c together) to copy the file/folder from its original location/ use ctrl+x (press ctrl alongwith x) to cut & then choose the appropriate location after which use ctrl+v (press ctrl & v together) to paste thefile/ folder there.
for eg. open my computer, then go to c:/, choose a file/folder then cut/ copy it by the above mentioned keys, then go to d:/ & paste it there.
this is the simplest method to do.
2) right click on the mouse, choose cut/copy. choose a location then again right click on the mouse, choose paste.
3) you can open the files & click on save as, then choose the location. click on ok.

2007-06-29 08:07:59 · answer #1 · answered by Winiart 2 · 0 0

Create a setup project in Visual Studio. It will create a program which can copy/deploy files. A setup.exe has nothing to do with registry by default. Its can be a program which just places files, as you want (as in your case).

Create Project > Other Project > Setup and Deployment > Setup Project

Just choose what files need to be placed where. You can even include the .net framework so that it can be installed along with the copying of files.

2007-06-30 22:38:10 · answer #2 · answered by Inderpreet 2 · 0 0

http://www.codeproject.com/cs/files/file_operations.asp

Check this out. C# has a System.IO class that you can use to access the files during run time. Once you inherit from the class you have it pointed to the folder and just copy the files from one location to another.

2007-06-29 08:32:13 · answer #3 · answered by sinkablehail1978 5 · 0 0

fedest.com, questions and answers