zoukankan
html css js c++ java
软件手动更新代码(vs2003) 转载cnblogs
启动更新程序执行文件
private
void
button2_Click(
object
sender, System.EventArgs e)
{
string
updateAppPath
=
Common.AppStartPath
+
@"
\AutoUpdate.exe
"
;
if
(
!
File.Exists(updateAppPath))
{
MessageBox.Show(
"
无法找到AutoUpdate应用程序!
"
);
return
;
}
string
argments
=
Process.GetCurrentProcess().Id.ToString();
ProcessStartInfo startInfo
=
new
ProcessStartInfo(updateAppPath, argments);
Process updateApp
=
new
Process();
updateApp.StartInfo
=
startInfo;
updateApp.Start();
}
得到启动程序的所在的文件夹路径
private
static
string
strAppPath
=
String.Empty;
/**/
///
<summary>
///
系统启动路径
///
</summary>
public
static
string
AppStartPath
{
get
{
if
(strAppPath
==
String.Empty)
{
strAppPath
=
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);
System.Uri uriPath
=
new
Uri(strAppPath);
strAppPath
=
uriPath.LocalPath.Replace(
'
/
'
,
'
\\
'
);
}
return
strAppPath;
}
}
项目Domo下载:
https://files.cnblogs.com/xiaobaigang/test.rar
查看全文
相关阅读:
virtualBox下面安装linux系统如何共享目录
PHP中spl_autoload_register()函数
PHP 5.5 新特性
useradd密码无效
Linux audit安全审计工具
Javascript class获取回调函数数据
RPi 3B 无线连接配置
Refused to execute inline event handler because it violates the following Content Security Policy directive: "xxx". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...')
options.html:1 Refused to load the script 'xxxx' because it violates the following Content Security Policy directive: "script-src 'self' blob: filesystem: chrome-extension-resource:".
jQuery.Deferred exception: $.get is not a function TypeError: $.get is not a function
原文地址:https://www.cnblogs.com/xiaobaigang/p/967590.html
最新文章
iis7以上版本权限控制
遇到CloudFlare邮箱混淆,如何解密?
Jquery实现抖动效果
linux下如何安装charles
vim ctags使用方法
NERD_commenter——VIM批量注释与反注释插件
charles使用教程指南
-bash: sudo: command not found Error and Solution
如何在服务器上搭建git服务器
请问如何查看mysql 的端口号?
热门文章
nginx: [warn] conflicting server name "localhost" on 0.0.0.0:80, ignored
Linux下vim查看文件名
nginx同一iP多域名配置方法
LINUX 命令行编辑快捷键
Linux 运行 apt-get install 就出现jdk installer 错误的解决方法
在linux下运行apt-get update 时,报错/var/lib/apt/lists/lock
fatal: Paths with -a does not make sense.
php json_decode 函数
linux 打造man中文帮助手册
virtualbox 中的linux 共享文件 发生文件系统类型错误的解决办法
Copyright © 2011-2022 走看看