保存和查看文件的应用程序路径 [英] Application path to save and view files

查看:61
本文介绍了保存和查看文件的应用程序路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将以编程方式创建的文本,excel或单词保存到应用程序路径中?

How to save my files text or excel or word created programatically to the application path?

推荐答案

我将在下面告诉您,但您不应该保存文件到应用程序路径.对于普通用户,此路径通常是只读的.您需要使用与用户帐户关联的特殊文件夹",或者对所有用户"使用一个.我也会告诉你怎么做.

请查看我过去的答案,在其中详细解释这些主题:
如何找到我的程序目录(如何找到我的程序目录().

—SA
I''ll tell you below, but you should not save files to the application path. This path is generally read-only for a regular user. You need to use "special folders" associated with a user account or one for "all users". I''ll tell you how to do this, too.

Just please see my past answers where I explain these topics in detail:
How to find my programs directory (location of the main executable module of entry assembly),
How to find my programs directory ("special folder", current directory).

—SA


这篇关于保存和查看文件的应用程序路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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