简体   繁体   English

如何从Windows中的命令行启动可执行文件

[英]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.

相关问题 如何在Windows上从命令行启动MingW控制台(GitBash)? - How to start MingW Console (GitBash) from Command Line on Windows? 从Windows命令行运行带有参数的python可执行文件 - running python executable from windows command line with arguments 如何从 Windows 10 上的命令行运行包含路径中空格的可执行文件? - How to run an executable that contains a space in path from command line on Windows 10? 在windows中通过sc.exe从命令行创建服务时如何将参数传递给可执行文件 - How to pass parameters to the executable when creating a service through sc.exe from command line in windows Windows上的START命令在哪里找到可执行文件的路径 - Where START command on Windows finds the path to executable C 的命令提示符:驱动器,如何在另一个驱动器中启动可执行文件? - Command prompt from C: drive, how to start executable in another drive? 从Windows命令提示符处使命令可执行 - Making a command executable from a windows command prompt 如何从命令行启动CouchDB - How to start CouchDB from command line 从Windows命令行启动时,Apache Derby(JavaDB)静默失败 - Apache Derby (JavaDB) fails silently at start from Windows command line 从不是子进程的命令行在Windows中启动EXE - Start an EXE in Windows from the Command Line that is not a Child Process
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM