cmd - 如何修复 '.'不是内部或外部命令错误

标签 cmd environment-variables

我遵循了几个链接来尝试解决此问题,例如 link1 ,他们要求我在环境变量中包含 exe 的路径。这是我尝试的以下命令,以获得此错误

       D:\Gesture Recognition\Gesture Recognition\Debug>./"Gesture Recognition.exe" 
       rawrec1.trr

和错误

    '.' is not recognized as an internal or external command,
     operable program or batch file.

我将手势识别exe路径包含到环境变量的系统和用户变量中。即使启动系统后,错误仍然存​​在。有人可以帮我解决这个问题吗?

最佳答案

只需省略“点斜杠”./:

D:\Gesture Recognition\Gesture Recognition\Debug>"Gesture Recognition.exe"

不过,如果您愿意,可以使用 .\ 并且它会起作用。

D:\Gesture Recognition\Gesture Recognition\Debug>.\"Gesture Recognition.exe"

关于cmd - 如何修复 '.'不是内部或外部命令错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20765337/

相关文章:

windows - 用于删除早于 N 天的文件的批处理文件

batch-file - 如何使用 ExifTool 从文件名设置文件的 DateTimeOriginal

angular - 如何改变 Angular 环境

powershell - Windows 上的 golang : How to build for Linux?

node.js - NodeJs : dotenv not working for nested paths

linux - 通过 FTP 从 windows 发送命令到 linux

windows - 脚本忽略退出命令并中断函数 BATCH/CMD

rust - 无法访问 Rust 中的环境变量

shell - 在 scp 路径中使用远程环境变量的值

php - 从 PHP 启动程序