useradmin(实用批处理脚本文件)

下载地址 源码: @echo off title 用户管理 color 2f echo 欢迎使用用户管理批处理脚本,本脚本为Xs编程练习实验品,若有意见或建议请访问http://sunhb.me/forum/ :back echo 菜单:请选择您要进行的任务,将任务编号填写到指定处后回车。 1.添加用户 2.更改用户密码 3.更改用户类型至管理员 4.删除用户 5.访问http://sunhb.me/forum/ 6.退出批处理脚本 set "tasknumber=" set /p tasknumber=请输入任务编号后回车 if "%tasknumber%"=="1" goto creatuser if "%tasknumber%"=="2" goto changecode if …

Continue Reading

.htaccess文件设置网站首页

问题引入 我们都知道, index.php , index.html 为当前目录的默认首页。但是在有些时候默认首页会是其他的文件,如何更改? 解决方案 在当前文件夹中新建一个 .htaccess 文件,编辑以下内容: DirectoryIndex home.HTML index.htm index.php 这里可以将 index 更改成目标文件名,然后就可以直接访问了。 如,在 “home/public_html/dev/.htaccess” 插入以下一段代码: DirectoryIndex home.HTML send.php 指定的文件夹目录 (“home/public_html/dev/send.php”) 便可以同时使用 …

Continue Reading