开发者

nbtstat in c++ not running

开发者 https://www.devze.com 2023-03-08 04:04 出处:网络
In my visual c++ code; with _popen() or system(), I ran \'nbtstat\', it runs perfectly in win7 but when I run my executable in windows server 开发者_JS百科2008, it says:

In my visual c++ code; with _popen() or system(), I ran 'nbtstat', it runs perfectly in win7 but when I run my executable in windows server 开发者_JS百科2008, it says:

'nbtstat' is not recognized as an internal or external command, operable program or batch file.

(I have nbtstat in my windows server 2008, I can run it from cmd or run.)

How can I solve this problem?

Thanks in advance..


http://social.technet.microsoft.com/Forums/en-US/windowsserver2008r2networking/thread/0cbfaf51-8fa5-46b1-afb4-e87bceca82f7/

In this article it is explained that windows auto-redirects you to SysWOW64 but nbtstat is in system32 so using "Wow64DisableWow64FsRedirection" I solved my problem.

Good day to you.

0

精彩评论

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