简体   繁体   English

寻找这些Linux bash命令的等效Windows批处理命令

[英]Looking for the equivalent Windows batch commands for these Linux bash commands

I'm new user of this forum. 我是这个论坛的新用户。 i want to ask my problem. 我想问我的问题。 what is command in windows if i have these commands in linux ? 如果我在Linux中有这些命令,Windows中的命令是什么?

first command : 第一条命令:

if (!is_dir('geoip')) mkdir('geoip', 0744);
shell_exec('unzip -oj GeoLiteCity.zip -d geoip/');

Second command : 第二条命令:

shell_exec('rm -rf geoip/');

what are those commands in windows? Windows中的那些命令是什么? thanks for the help. 谢谢您的帮助。 sorry for my english. 对不起我的英语不好。

Windows does not have a built-in command to unzip a file, although it's possible to install InfoZip which has the same command-line arguments as zip does on Linux. Windows没有内置的命令来解压缩文件,尽管可以安装与Linux上的zip具有相同命令行参数的InfoZip。

The command to delete a directory in Windows is rd /s /q geoip but there are various ways to recursively delete a directory in PHP, the latest of which is to use the new recursive directory iterator, such as mentioned on the answers to Recursive delete . 在Windows中删除目录的命令是rd /s /q geoip但是有多种方法可以递归地删除PHP中的目录,最新的方法是使用新的递归目录迭代器,如“ 递归删除 ”答案中所述。 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM