如何找到‘.‘ 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>
总结:
下次创建文件夹名须谨慎,尽量不留有空格之类的问题。
更多推荐
所有评论(0)