开发者

In windows, Runtime.exec does not find the file to execute.Is there a setting to disable exec ing of files without the ".exe" specified?

开发者 https://www.devze.com 2023-03-29 09:23 出处:网络
In windows Runtime.exec does not find the file to execute. It says could not find the file specified. I am doing Runtime.exec(\"myprogram\"). Its localted under PATH variable.

In windows Runtime.exec does not find the file to execute. It says could not find the file specified.

I am doing Runtime.exec("myprogram"). Its localted under PATH variable.

Is there a setting in Windows which disables exec ing 开发者_StackOverflow社区of files without the ".exe" specified?

If I specify Runtime.exec("myprogram.exe"), is there any chance of this program running fine?

I know that this is a very strange question, but I am hoping somebody who understands the security features in Windows can throw some light.

0

精彩评论

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