• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            牽著老婆滿街逛

            嚴(yán)以律己,寬以待人. 三思而后行.
            GMail/GTalk: yanglinbo#google.com;
            MSN/Email: tx7do#yahoo.com.cn;
            QQ: 3 0 3 3 9 6 9 2 0 .

            Windows環(huán)境變量管理器 EnvMan(Windows Environment Variables Manager)

            Main Form

            Edit Form

            News

            15/10/2007 EnvMan-1.2.2 is released

            • Fixed problem with Delete button on Edit Form.

            Introduction

            Environment Variables Manager (EnvMan) is a tool written in C# .Net intended to handle the administration of Windows Shell Environment Variables. It is designed to replace Control Panel System Environment Manager and easily manage long variable values.

            EnvMan User Guide

            Installation

            In order to run this program you need to have .Net 2.0 runtime installed. After installing .Net 2.0 runtime download program binaries from the EnvMan Project Website. Unzip EnvMan-x.x.x.x.zip file to where you want and set a short cut to EnvMan.exe file to desktop or start menu. You are now ready to run application. In the future I am planning to offer a choice of Windows Installer (MSI) setups and "ClickOnce" for installations and upgrades.

            Using a program

            Windows Environment Variables Manager (EnvMan) has a simple interface similar to common Environment Variables Editing tool in Systems control panel.

            Main screen lists User and System Environment Variables. "New", "Edit", "Delete" buttons allow create new environment variable, edit existing ones and delete. By clicking "New" and "Edit buttons Edit screen is shown.

            Enter Variable name and at least one value in the grid to create a new variable. You can use Up/Down arrow buttons on right of the grid to change order of the rows. Folder button allows selecting specific path as a value. Delete button removes selected value from the grid. Once you are ready click Save button or Cancel if no change needed. Changes will be reflected in the Main Screen grid.

            Every change performed by side buttons can be undone or redone using arrow buttons. Tool Tip on these buttons shows an action they are going to perform. Keep in mind, if you used undo and then performed an action, every redo command is cleared after that action.

            Variable Import/Export

            There are two new buttons on the top right of the Edit Form. Variable values can now be exported to an *.env XML file and imported on the different computer or user. The only restriction is that you cannot import values from the different variable. If variable name does not match it will not import and will display a message. It is also possible to create new variables using import. Open new variable by clicking "New" on the Main Form and use import button to import values from selected ENV file. Name of the variable will be loaded as well.

            All imported values will have a "+" sign on their type icons.

            Open in Explorer context menu

            New context menu added to a grid in Edit Form. If right click on the path value of the variable and select "Open in Windows Explorer" it will launch Windows Explorer with first valid folder or file selected. If command used on the non-path value then message will be displayed that no valid paths can be selected.

            Running on Vista

            To use EnvMan under Vista it should be run with an Administrator privileges. To make it run as Administrator by default open properties of the EnvMan.exe or a shortcut to it.

            Select compatibility tab and check "Run this program as an Administrator" check box.

            If you want to apply this setting to all users click on "Show settings for all users button" and check "Run this program as an Administrator" check box.

            Click OK on every dialog. Now EnvMan.exe will have all the rights to save environment variables. This applies to all versions of the EnvMan.

            For more tips and instructions please visit EnvMan project News blog.

            Code behind

            System Environment Variables Management

            Whole application is based around of idea of using System.Environment class and its GetEnvironmentVariables, GetEnvironmentVariable, SetEnvironmentVariable functions. A list of values separated by ';' is divided into separate strings and loaded into the grid to allow easy manipulation.

            Below is an extract of the source code used to load and save environment variables:

            public IDictionary GetEnvVariables(EnvironmentVariableTarget varType)
            {
            return Environment.GetEnvironmentVariables(varType);
            }
            public string GetEnvVariable(string varName, EnvironmentVariableTarget varType)
            {
            return Environment.GetEnvironmentVariable(varName, varType);
            }
            public void SetEnvironmentVariable(string varName, string varValue, EnvironmentVariableTarget varType)
            {
            ValidateVariables(varName, varValue);
            Environment.SetEnvironmentVariable(varName, varValue, varType);
            }
            public void DeleteEnvironmentVariable(string varName, EnvironmentVariableTarget varType)
            {
            SetEnvironmentVariable(varName, null, varType);
            } 

            Licence

            This program is distributed under the terms of the GNU General Public License v2 or later.

            History

            Version 1.2.2

            • Fixed problem with Delete button on Edit Form
            • Removed Setup project. It will be replaced by WiX setup.

            Version 1.2.1

            • BT1767453 On value edit Undo Redo not recording. Fixed problems when user does not enter text into value cell.
            • BT1792173 Incorrectly detected Value type. Checking that path string is starts with "<drive>:\".
            • BT1806716 Grid Cell accepts semi colon. Added validation DataGridView in Edit form.

            Version 1.2

            • Implementation of Import/Export variable values functionality (BT1709867)
            • Implementation of Locate/Open in Windows Explorer Edit Form Grid context menu (BT1729869 - Implemented by PRANKENST!EN)
            • Upgraded license to GPL Version 3

            Version 1.1.2

            • Fixed reloading of Main Form on Row double click
            • Added remembering current row and setting it visible after reloading
            • Set Buttons State happens on Data Grid View current selection change
            • Fixed row deletion when user hits delete key on keyboard
            • Added Help Menu new entries.
            • Added credits box in About box
            • Modified CleanAll.bat to work with new projects
            • Added automated build of Setup project

            Version 1.1.1.0

            • Implementation of Undo/Redo functionality (Bug Tracker ID: 1705000)
            • Added Tool Tip info for icons in Edit Form

            Version 1.1.0.2

            • Made single selection in the Edit form grid
            • Set minimum sizes for main and edit forms
            • Fixed bug on renaming variable name

            Version 1.1.0.1

            • Fix alignment of the delete button.
            • Added the current log-on user on Top of User Variables grid
            • Simplify parsing of the variable value string by using string.split function
            • Add settings to save splitter position of the component

            Version 1.1.0.0 Released on project site at SourceForge

            Support

            EnvMan Project at SourceForge
            EnvMan News Blog

            If you have problems getting latest demo and source files from SourceForge try downloading CodeProject files below.

            About Vladislav Setchin


            I have never shared my work online before. Now time has come. I recently started a Software Development Toolbox project. Anyone is welcome to view and add your share to it.

            Click here to view Vladislav Setchin's online profile.

            posted on 2007-12-01 21:38 楊粼波 閱讀(919) 評(píng)論(0)  編輯 收藏 引用


            只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問(wèn)   Chat2DB   管理


            国产日产久久高清欧美一区| 久久99热精品| 国产精品gz久久久| 亚洲国产精品热久久| 午夜精品久久久久久| 影音先锋女人AV鲁色资源网久久 | 久久亚洲精品国产精品| 久久99精品久久久久久久不卡| 99久久国产综合精品成人影院| 久久精品国产一区二区三区 | 精品无码久久久久国产| 国产亚州精品女人久久久久久 | 午夜久久久久久禁播电影| 国产成人精品久久一区二区三区av| 久久www免费人成看国产片| 久久午夜无码鲁丝片秋霞| 色偷偷88888欧美精品久久久| 国产香蕉97碰碰久久人人| 久久ww精品w免费人成| 国产成人无码精品久久久性色| 久久国产精品成人免费| 国产精品久久新婚兰兰| 国产精品嫩草影院久久| 久久精品国产亚洲欧美| 伊人久久精品影院| 亚洲精品成人久久久| 99久久精品九九亚洲精品| 国产精品美女久久久久久2018| 久久精品国产亚洲av麻豆图片| 精品一二三区久久aaa片| 四虎亚洲国产成人久久精品| 国产99久久久久久免费看| 久久偷看各类wc女厕嘘嘘| 无码日韩人妻精品久久蜜桃 | 欧美黑人激情性久久| 青春久久| 性做久久久久久久久老女人| 久久久WWW免费人成精品| 久久久精品久久久久特色影视| 久久精品嫩草影院| 9999国产精品欧美久久久久久 |