如何找到‘.‘ 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
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
"vim" is not recognized as an internal or external command, operable program or batch file. This error typically occurs when the "vim" command-line text editor is not installed or not properly configured on your system. Here are a few steps you can take to resolve this issue: 1. Install Vim: If you haven't installed Vim yet, you can download it from the official Vim website (https://www.vim.org/download.php) and follow the installation instructions for your operating system. Make sure to add Vim to your system's PATH environment variable during the installation process. 2. Check PATH variable: If you have already installed Vim, it's possible that its installation directory is not included in your system's PATH environment variable. To check this, open a command prompt and run the following command: ``` echo %PATH% ``` Look for the directory where Vim is installed (e.g., "C:\Program Files\Vim") in the output. If it's missing, you need to add it manually: - Open the System Properties dialog by right-clicking on My Computer/This PC and selecting "Properties". - Click on "Advanced system settings" or "Advanced" tab. - Click on the "Environment Variables" button. - In the "System variables" section, select the "Path" variable and click on "Edit". - Add the directory path of your Vim installation (e.g., "C:\Program Files\Vim") at the end of the variable value, separating it from the previous entry with a semicolon (;). - Click "OK" to save the changes. 3. Restart your command prompt: After making any changes to the PATH variable, you need to close and reopen your command prompt for the changes to take effect. Once you've done that, try running the "vim" command again to see if it works. If the issue persists, please ensure that you have installed Vim correctly and that it is accessible from the command prompt.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值