我如何添加和删除环境变量 [英] how do i add and delete environment variables

查看:101
本文介绍了我如何添加和删除环境变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不删除其他值的情况下添加和删除环境变量.目前,我正在编写一个应用程序,在该应用程序中,我从FTP服务器下载文件而不存储在磁盘中.我认为它存储在计算机的内存中.下载文件后,文件内容显示在输出中.该应用程序的主要目的是在每次PC启动时更新环境变量.源文件有3个字段,环境变量,值和操作.因此,我想对应用程序进行编程,以在需要时添加或删除变量.因此,当修改源文件时,所需的环境变量将被更新.该程序位于C#

How do i add and delete environment variables without deleting other values.Currently I am programming an application where I download a file from the FTP server without storing in a disk. I think it is stored in the computer''s memory. After downloading the file, the contents of the file is shown in the output. The main purpose of the application is to update the environment variables in every start up of the PC. The source file has 3 fields , enviroment variable , value and action. Thus I am suppose to program the application to add or delete variable when needed. SO when the source file is being modified, the required environment variable will be updated. The program is in C#

推荐答案

也许
Maybe this[^] can help you.


这篇关于我如何添加和删除环境变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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