-
C# 取消磁盘共享功能的实例
Visual C# 取消Windows 磁盘共享源代码,在Widnwos7也可设置某一磁盘共享和不共享,本程序只是模拟实现的功能,可取消已被共享的磁盘,在文本框中输入盘符即可取消该盘的共享属性。编写思路,单击一个按钮,创建一个事件,将整个需要实现的功能都写进按钮事件中,事件的代码如下:
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
myProcess.StartInfo.FileName = "cmd.exe";//启动cmd命令
myProcess.StartInfo.UseShellExecute = false;//是否使用系统外壳程序启动进程
myProcess.StartInfo.RedirectStandardInput = true;//是否从流中读取
myProcess.StartInfo.RedirectStandardOutput = true;//是否写入流
myProcess.StartInfo.RedirectStandardError = true;//是否将错误信息写入流
myProcess.StartInfo.CreateNoWindow = true;//是否在新窗口中启动进程
myProcess.Start();//启动进程
//执行取消磁盘共享命令
myProcess.StandardInput.WriteLine("NET SHARE " + textBox1.Text + "$ /DEL");
MessageBox.Show("执行成功", "信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
- 2023-05-13 16:00:03下载
- 积分:1
-
极化码极化现象matlab代码
显示极化码的极化码现象,可改变码长n以观看极化现象(The polarization phenomenon of polar code is displayed, which can change the length of code n to watch polarization phenomenon)
- 2017-10-27 14:52:14下载
- 积分:1
-
一个简单的心理学测试软件.用C++ MFC编写.
一个简单的心理学测试软件.用C++ MFC编写.-a simple psychological test software. MFC C preparation.
- 2022-02-28 13:03:13下载
- 积分:1
-
精通开关电源设计.part1
说明: about the llc pfc vms zcs zvs
- 2020-06-04 13:04:48下载
- 积分:1
-
用于分析2d介质柱阵列模型中电磁场分布 附TXT使用说明
用于分析2d介质柱阵列模型中电磁场分布 附TXT使用说明-Used to analyze the 2d array dielectric cylinder model of electromagnetic field distribution for use attached to TXT
- 2022-04-17 20:49:06下载
- 积分:1
-
滤波法
说明: A、名称:限幅滤波法(又称程序判断滤波法)
B、方法:
根据经验判断,确定两次采样允许的最大偏差值(设为A),
每次检测到新值时判断:
如果本次值与上次值之差A,则本次值无效,放弃本次值,用上次值代替本次值。
C、优点:
能有效克服因偶然因素引起的脉冲干扰。
D、缺点:
无法抑制那种周期性的干扰。
平滑度差。(A. Name: Limited filter method (also known as program judgement filter method)
B. Method:
Based on experience, the maximum allowable deviation (set to A) of two sampling times is determined.
Judge each time a new value is detected:
If the difference between the current value and the previous value is
- 2020-06-24 18:20:01下载
- 积分:1
-
深度学习基础及数学原理
有关深度学习基础算法和相关数学原理的介绍,由浅入深,内容详实。(Deep learning algorithms and mathematical principle introduction.)
- 2018-03-05 16:25:21下载
- 积分:1
-
模仿windows里面自带的扫雷游戏而设计的扫雷游戏,完全由VC++设计。...
模仿windows里面自带的扫雷游戏而设计的扫雷游戏,完全由VC++设计。-imitation windows inside the mine, bringing their game designed demining game entirely by VC design.
- 2023-01-16 09:25:03下载
- 积分:1
-
理论值计算程序
采用POE指数积定义,可用于机器人标定,以提高机器人的定位精度(The definition of POE exponent product can be used in robot calibration to improve the positioning accuracy of robot.)
- 2020-10-18 20:57:26下载
- 积分:1
-
HEV
混合动力simulnk生成的代码 混合动力simulnk生成的代码混合动力simulnk生成的代码(The hybrid simulnk generated code)
- 2012-08-27 13:02:25下载
- 积分:1