给出图像文件夹的静态路径 [英] Give static path for image folder

查看:67
本文介绍了给出图像文件夹的静态路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..朋友,我在vb.net中建立了一个项目,现在可以正常工作了,但问题是我将图像保存在应用程序调试文件夹中的photo文件夹中.我的项目在几台计算机上的LAN上运行,因此我想为服务器计算机的照片文件夹提供静态路径,但是如何?请帮帮我.

谢谢与问候

Parveen Rathi

Hi.. Friends I build a project in vb.net, now it is working fine but the problem is that I save the images in photo folder which is in application debug folder. My project is running on LAN on several computers, so I want to give the static path for photo folder of the server computer, but how ? please help me.

Thanks & Regards

Parveen Rathi

推荐答案

您可以使用app.config文件,并在其中包含指向局域网上共享位置的path语句.阅读启动时的设置.

然后,您可以使用不同的版本来确定您是要运行调试程序还是发行版来确定要使用的路径.

读一读;
管理.NET应用程序中的配置设置的持久性 [
You could using an app.config file and include the path statement to the shared location on the lan in that. Read the setting on startup.

You can then use different builds to determine if you are running a debug or a release to determine which path to use.

Have a read of this;
Managing configuration settings persistence in .NET applications[^]


这篇关于给出图像文件夹的静态路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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