开发者

Post build event command whose directory is not C:\

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜