我在 Windows 命令提示符中的目录中。我可以使用以下命令创建一个子目录:
md /data/rs1
我还可以通过 Linux 中的单个命令创建多个子目录,例如:
mkdir -p /data/rs1 /data/rs2 /data/rs3
但是我想通过单个命令在 Windows 命令提示符中创建多个子目录。
怎么做?
更具体地说,我需要上述 Linux shell 命令的 Windows 等效命令。
提前致谢。
答案1
通过反复试验的方法,我发现下面这一行可以满足我的目的:
md data\rs1 data\rs2 data\rs3
要从 unix 命令转换,请删除第一个/
并将其余部分替换/
为\
。
答案2
在命令行界面中,您可以使用以下代码创建多个嵌套目录:
mkdir -p data/rs1 /data/rs2 /data/rs3
第一个目录前没有斜杠符号 /。
答案3
对于 Windows,请尝试以下 package.json
{
"name": "react-blur-admin",
"version": "0.11.1",
"description": "React Blur Admin - Styles And Components",
"main": "dist",
"scripts": {
"clean": "RD /S /Q dist && md dist && md dist\\assets && md dist\\assets\\styles && md dist\\assets\\fonts && md dist\\assets\\img",
"deploy": "npm run clean && npm run deployjs && npm run deploycss && npm run deployassets",
"deployassets": "copy src\\assets\\fonts dist\\assets && copy src\\assets\\img dist\\assets",
"deploycss": "node-sass -r src/assets/styles/app.scss dist/assets/styles/react-blur-admin.min.css && copy src\\assets\\styles\\bootstrap\\fonts\\* dist\\assets\\fonts",
"deployjs": "babel -d dist src",
"lint": "node_modules/.bin/eslint --ext js src/",
"prepublish": "npm run deploy",
"preversion": "npm run lint && npm run test",
"test": "NODE_ENV=test NODE_PATH=. ./node_modules/.bin/mocha test/.setup.js test --recursive"
},
"repository": {
"type": "git",
"url": "git+https://github.com/knledg/react-blur-admin.git"
},
"keywords": [
"react",
"blur admin"
],
"author": "Consolidated Knowledge",
"license": "MIT",
"bugs": {
"url": "https://github.com/knledg/react-blur-admin/issues"
},
"homepage": "https://github.com/knledg/react-blur-admin#readme",
"peerDependencies": {
"react": ">=0.14.0"
},
"dependencies": {
"babel-cli": "^6.9.0",
"classnames": "^2.2.5",
"lodash": "^4.7.0",
"react-flex-proto": "^1.0.0"
},
"devDependencies": {
"babel-core": "^6.9.0",
"babel-eslint": "^6.0.4",
"babel-loader": "^6.2.4",
"babel-plugin-transform-runtime": "^6.5.0",
"babel-preset-es2015": "^6.5.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-1": "^6.5.0",
"babel-register": "^6.11.6",
"babelify": "^7.2.0",
"chai": "^3.5.0",
"enzyme": "^2.3.0",
"eslint": "^2.10.2",
"eslint-plugin-react": "^5.1.1",
"estraverse-fb": "^1.3.1",
"jsdom": "^9.4.1",
"mocha": "^2.5.2",
"mocha-sinon": "^1.1.5",
"node-sass": "^4.9.0",
"react": "^15.1.0",
"react-addons-test-utils": "^15.1.0",
"react-dom": "^15.1.0",
"sinon": "^1.17.4",
"uglifyjs": "^2.4.10",
"webpack": "^1.13.1"
}
}