• 大小: 0.48M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-24
  • 语言: C#
  • 标签:

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace WriteINI
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        [DllImport(“kernel32“)]
        private static extern long WritePrivateProfileString(string section string key string val string filePath);
        public static void IniWriteValue(string section string key string value string path)
        {
            WritePrivateProfileString(section key value path);
        }
        string strg;
        private void Form1_Load(object sender EventArgs e)
        {
            strg = Application.StartupPath.ToString();
            strg = strg.Substring(0 strg.LastIndexOf(“\\“));
            strg = strg.Substring(0 strg.LastIndexOf(“\\“));
 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         914  2009-02-07 11:19  sj\01\WriteINI\WriteINI.sln
     文件       14336  2009-02-07 11:27  sj\01\WriteINI\WriteINI.suo
     文件        1532  2009-02-07 11:27  sj\01\WriteINI\WriteINI\Form1.cs
     文件        5674  2009-02-07 11:25  sj\01\WriteINI\WriteINI\Form1.Designer.cs
     文件        5814  2009-02-07 11:25  sj\01\WriteINI\WriteINI\Form1.resx
     文件         489  2009-02-07 11:19  sj\01\WriteINI\WriteINI\Program.cs
     文件          30  2009-02-21 08:44  sj\01\WriteINI\WriteINI\Test.ini
     文件        3795  2009-02-07 11:21  sj\01\WriteINI\WriteINI\WriteINI.csproj
     文件        9728  2009-02-07 11:25  sj\01\WriteINI\WriteINI\bin\Debug\WriteINI.exe
     文件       24064  2009-02-07 11:25  sj\01\WriteINI\WriteINI\bin\Debug\WriteINI.pdb
     文件       14328  2009-02-07 11:27  sj\01\WriteINI\WriteINI\bin\Debug\WriteINI.vshost.exe
     文件         490  2007-07-21 01:33  sj\01\WriteINI\WriteINI\bin\Debug\WriteINI.vshost.exe.manifest
     文件         571  2009-02-07 11:27  sj\01\WriteINI\WriteINI\obj\Debug\WriteINI.csproj.FileListAbsolute.txt
     文件         847  2009-02-07 11:25  sj\01\WriteINI\WriteINI\obj\Debug\WriteINI.csproj.GenerateResource.Cache
     文件        9728  2009-02-07 11:25  sj\01\WriteINI\WriteINI\obj\Debug\WriteINI.exe
     文件         180  2009-02-07 11:25  sj\01\WriteINI\WriteINI\obj\Debug\WriteINI.Form1.resources
     文件       24064  2009-02-07 11:25  sj\01\WriteINI\WriteINI\obj\Debug\WriteINI.pdb
     文件         180  2009-02-07 11:22  sj\01\WriteINI\WriteINI\obj\Debug\WriteINI.Properties.Resources.resources
     文件        1348  2009-02-07 11:19  sj\01\WriteINI\WriteINI\Properties\AssemblyInfo.cs
     文件        2866  2009-02-07 11:19  sj\01\WriteINI\WriteINI\Properties\Resources.Designer.cs
     文件        5612  2009-02-07 11:19  sj\01\WriteINI\WriteINI\Properties\Resources.resx
     文件        1093  2009-02-07 11:19  sj\01\WriteINI\WriteINI\Properties\Settings.Designer.cs
     文件         249  2009-02-07 11:19  sj\01\WriteINI\WriteINI\Properties\Settings.settings
     文件         911  2009-02-07 11:27  sj\02\ReadINI\ReadINI.sln
     文件       13824  2009-02-07 11:36  sj\02\ReadINI\ReadINI.suo
     文件        1482  2009-02-07 11:31  sj\02\ReadINI\ReadINI\Form1.cs
     文件        5677  2009-02-07 11:31  sj\02\ReadINI\ReadINI\Form1.Designer.cs
     文件        5814  2009-02-07 11:31  sj\02\ReadINI\ReadINI\Form1.resx
     文件         488  2009-02-07 11:27  sj\02\ReadINI\ReadINI\Program.cs
     文件        3793  2009-02-07 11:31  sj\02\ReadINI\ReadINI\ReadINI.csproj
     文件          30  2009-02-21 08:44  sj\02\ReadINI\ReadINI\Test.ini
............此处省略57个文件信息

评论

共有 条评论