[英]how to start executable from command line in windows
I have a program when I click it, it opens fine.But when I run it command prompt it gives an error that is related to a dll that my program uses.I do in cmd 当我单击它时,我有一个程序,它可以正常打开。但是当我运行它时,命令提示符给出与我的程序使用的dll相关的错误。
"Path_to_program\program.exe"
And a note:my program is installed my D: drive 并注意:我的程序已安装在我的D:驱动器中
But it gives an error related to dll.the dll is in the same directory with program.I guess it is related to dll.is there an option to give the dll as dependency to my command? 但是它给出了一个与dll相关的错误。该dll与program在同一目录中。我猜它与dll有关。是否可以将dll作为我的命令的依赖项?
You need to change to the same folder that the program is in so that your working directory matches. 您需要更改到该程序所在的文件夹,以便您的工作目录匹配。
Try 尝试
cd Path_to_program
program.exe
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.