大约有 19,024 项符合查询结果(耗时:0.0245秒) [XML]

https://www.tsingfun.com/it/cpp/2107.html 

[完整实例源码]C&C++修改文件只读属性 - C/C++ - 清泛网 - 专注C/C++及内核技术

[完整实例源码]C&C++修改文件只读属性先使用GetFileAttributes获取文件属性,判断该文件是否是只读,然后SetFileAttributes修改文件属性。代码如下:#include "stdafx.h"int _...先使用GetFileAttributes获取文件属性,判断该文件是否是只读,然...
https://www.tsingfun.com/it/da... 

正确重置MySQL密码 - 数据库(内核) - 清泛网 - 专注C/C++及内核技术

...需要把用到的SQL语句保存到一个文本文件里(/path/to/init/file): UPDATE mysql.user SET Password=PASSWORD('...') WHERE User='...' AND Host= '...'; FLUSH PRIVILEGES; 接着使用init-file参数启动MySQL服务, shell> /etc/init.d/mysql stop shell> mysqld_safe --init-file=/p...
https://www.tsingfun.com/it/te... 

PHP常用API函数用法 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...的长度 负数 - 从字符串末端返回的长度 PHP file_exists() 函数 定义和用法 file_exists() 函数检查文件或目录是否存在。 如果指定的文件或目录存在则返回 true,否则返回 false。 语法 file_exists(path) 参...
https://www.tsingfun.com/it/tech/1066.html 

Linux日志切分工具:Logrotate - 更多技术 - 清泛网 - 专注C/C++及内核技术

...tc/logrotate.conf」: # see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones create # uncomment this if you want your log files compressed #compress # RPM packages drop ...
https://www.tsingfun.com/it/tech/1659.html 

C# HTTP上传文件(客户端及服务器端) - 更多技术 - 清泛网 - 专注C/C++及内核技术

...Upload.aspx,Page_Load事件中添加如下代码) foreach (string fileKey in Request.Files.AllKeys) { HttpPostedFile file = Request.Files[fileKey]; file.SaveAs("d:\\test_server.txt"); } 然后看看如何上传一个文件到服务器端:(建立一个WinForm测试上传...
https://www.tsingfun.com/it/tech/1685.html 

解决IIS发布时global_asax的dll 的CS0433冲突问题 - 更多技术 - 清泛网 - ...

...in both 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\925f9bdc\bb48a68c\App_global.asax.eptr0taj.dll' and 'c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\925f9bdc\bb48a68c\assembly\dl3\2dbf40e1\195f4379_8b0fd101\App_global.asax.DLL' So...
https://www.tsingfun.com/it/tech/1789.html 

Linux Shell脚本参数的获取方法 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...码(exit xx, 函数return xx)一般0成功,1失败 #!/bin/sh echo 'file name:' $0 echo 'param num: ' $# if [ $# -gt 1 ]; then echo 'the second param:' $2 fi ./param.sh file name: ./param.sh param num: 0 ./param.sh a file name: ./param.sh param num: 1 ./param.sh a b file n...
https://bbs.tsingfun.com/thread-487-1-1.html 

Linux Shell脚本参数的获取方法 - 脚本技术 - 清泛IT社区,为创新赋能!

...码(exit xx, 函数return xx)一般0成功,1失败 #!/bin/sh echo 'file name:' $0 echo 'param num: ' $# if [ $# -gt 1 ]; then echo 'the second param:' $2 fi 复制代码./param.sh file name: ./param.sh param num:  0 ./param.sh a file name: ./param.sh param num:  1 ...
https://bbs.tsingfun.com/thread-491-1-1.html 

Linux automake自动编译全攻略 - 脚本技术 - 清泛IT社区,为创新赋能!

...automake通常用于大型工程的自动化编译,我们只需编写Makefile.am,它的规则比直接编写Makefile简单得多(Makefile不熟悉的要好好学习一下),而且也灵活的多。使得开发者只需关心代码逻辑,不必过于关心项目的编译配置。 automa...
https://bbs.tsingfun.com/thread-634-1-1.html 

正确重置MySQL密码 - 爬虫/数据库 - 清泛IT社区,为创新赋能!

...需要把用到的SQL语句保存到一个文本文件里(/path/to/init/file):UPDATE mysql.user SET Password=PASSWORD('...') WHERE User='...' AND Host= '...'; FLUSH PRIVILEGES;接着使用init-file参数启动MySQL服务,shell> /etc/init.d/mysql stop shell> mysqld_safe --init-file=/p...