开发者

Post build event command whose directory is not C:\

开发者 https://www.devze.com 2023-02-03 21:15 出处:网络
I want to run a command in the post build event of a project, if i do开发者_高级运维 C:\\temp\\Client.exe it works fine but If my project is in the thumb drive and change the command to G:\\temp\\Clie

I want to run a command in the post build event of a project, if i do开发者_高级运维 C:\temp\Client.exe it works fine but If my project is in the thumb drive and change the command to G:\temp\Client.exe it looks like it doesnt like the path and exit with code 9009. what command do i need if the exe is in different path than C drive. Thankx


From the question and subsequent comment it looks that drive letter keeps changing. It is possible in post-build section check if the file exist before call it.

For debugging you can use something like

f:
Dir

And view output window after the build.

0

精彩评论

暂无评论...
验证码 换一张
取 消