如何找到‘.‘ is not recognized as an internal or external command的根本原因和解决方案
Posted DB架构
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何找到‘.‘ is not recognized as an internal or external command的根本原因和解决方案相关的知识,希望对你有一定的参考价值。
错误显示如下:
Microsoft Windows [Version 10.0.22000.1165]
(c) Microsoft Corporation. All rights reserved.D:\\Soft\\BIGDATA\\Centos\\RAC\\sharedisk>./vmware-vdiskmanager.exe -c -s 40GB -t 4 sharedisk01.vmdk
'.' is not recognized as an internal or external command,
operable program or batch file.D:\\Soft\\BIGDATA\\Centos\\RAC\\sharedisk>
原因是: 创建虚拟机文件夹时留有空格
D:\\Soft\\BIGDATA\\Centos\\VM\\VMware Workstation
解决方案如下:
使用绝对路径将需要执行的.exe用双引号括起来,执行对应脚本。
D:\\Soft\\BIGDATA\\Centos\\RAC\\sharedisk>"D:\\Soft\\BIGDATA\\Centos\\VM\\VMware Workstation\\vmware-vdiskmanager.exe" -c -s 40GB -t 4 sharedisk01.vmdk
Creating disk 'sharedisk01.vmdk'
Create: 100% done.
Virtual disk creation successful.D:\\Soft\\BIGDATA\\Centos\\RAC\\sharedisk>"D:\\Soft\\BIGDATA\\Centos\\VM\\VMware Workstation\\vmware-vdiskmanager.exe" -c -s 40GB -t 4 sharedisk02.vmdk
Creating disk 'sharedisk02.vmdk'
Create: 100% done.
Virtual disk creation successful.D:\\Soft\\BIGDATA\\Centos\\RAC\\sharedisk>"D:\\Soft\\BIGDATA\\Centos\\VM\\VMware Workstation\\vmware-vdiskmanager.exe" -c -s 40GB -t 4 sharedisk03.vmdk
Creating disk 'sharedisk03.vmdk'
Create: 100% done.
Virtual disk creation successful.D:\\Soft\\BIGDATA\\Centos\\RAC\\sharedisk>
总结:
下次创建文件夹名须谨慎,尽量不留有空格之类的问题。
以上是关于如何找到‘.‘ is not recognized as an internal or external command的根本原因和解决方案的主要内容,如果未能解决你的问题,请参考以下文章
Kafka bootstrap.server is not a recognized option
Windows命令无法运行报错:is not recognized as an internal
Kafka安装及zookeeper is not a recognized option问题解决
coding++:kafka问题:zookeeper is not a recognized option zookeeper参数不支持
kafka 创建消费者报错 consumer zookeeper is not a recognized option
'react-scripts' is not recognized as an internal or external command