在android设备中要创建多个或者多级文件夹时,手动去创建费时费力(有点傻),一个bat文件就能很好的实现这个功能. 1.首先创建同级多个文件夹且在该文件夹下生成一个文件 @echo off echo please wait the devices to connect ..... adb wait-for-device echo device connected set /p i=Please input the number of folder you need: :start set /
批量注册当前文件夹中的dll和ocx 新建文件:RegisterDllAndOcx.bat @echo off echo hello,girl~~ for %%i in (*.dll *.ocx) do ( echo %% register is starting... C:\Windows\System32\regsvr32.exe %%i /s echo %%i register is finished... ) pause 备注:可根据显示需要,酌情修改~
学了这个,就不用手动删除大量的指定的文件类型,可以做到双击bat处理文件就可以删除了 比如说,我要删除当前文件夹下的txt文件和doc文件,代码如下 del *.txt* del *.doc* 其原理就是用到DOS命令 首先建一个文本文件,然后复制上面的命令,保存 再把后缀改为bat,最后双击运行就可以了
原命令:useradd python 改正后:useradd python -m 后成功在home目录下创建文件夹 原因: man useradd就可以看到如此介绍:Create the user´s home directory if it does not exist.(它将创建用户的主目录即使不存在) 接着下面useradd will create the home directory unless CREATE_HOME in /etc/login.defs is set to no.