如何使用Windows应用程序在本地系统中存储文件? [英] How To Store File In local System Using Windows Application?

查看:125
本文介绍了如何使用Windows应用程序在本地系统中存储文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要在本地系统中上传Employee Zip文件的应用程序.例如:
"D:\ Employee_File \ E01.zip".我该怎么做?

I have application in which i want upload Employee Zip File In Local System . For Example :
" D:\Employee_File\E01.zip". How can i do this?

推荐答案



如果使用Windows应用程序,则可能需要将文件从一个位置复制到另一位置,而不是文件上传.文件上载概念用于服务器不是本地计算机的Web应用程序中.

要在Windows应用程序中复制文件,则可以使用 File.Copy [
Hi,

If you are working with windows application then you may need to copy file from one location to another location instead of file upload. File upload concept is used in web application where server is not your local computer.

To copy your file in your windows application then you can use File.Copy[^] function.

In case you need to store this file centrally then you can use Database to store your file.

In case you do not want to store this file in database but you want to store this file centrally then you have to create one service to stream this file on the server. Sharing folder also works but it''s not recommended.

Hope i answered your all query
Thanks
-Amit Gajjar


请参阅以下链接:
http://stackoverflow.com/questions/1435037/how-应该在winforms中存储每个用户数据 [ http://stackoverflow. com/questions/3102193/how-to-download-file-in-local-machine-which-is-selected-in-combo-box [ ^ ]


--Amit
Refer the links below:
http://stackoverflow.com/questions/1435037/how-should-i-store-per-user-data-in-winforms[^]
http://stackoverflow.com/questions/3102193/how-to-download-file-in-local-machine-which-is-selected-in-combo-box[^]


--Amit


这篇关于如何使用Windows应用程序在本地系统中存储文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆