Delphi ShellExecute在Windows 7中不起作用 [英] Delphi ShellExecute not working in Windows 7

查看:247
本文介绍了Delphi ShellExecute在Windows 7中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是知道这很简单,但是我尝试了在该论坛上可以找到的所有建议,但仍然无法获得下面的ShellExecute语句,该语句在XP上运行了四年很好,在Windows 7中可以正常工作。

I just KNOW this is something simple, but I've tried all of the suggestions I could find on this forum, and I still can't get the following ShellExecute statements, which worked perfectly well for four years on XP, to work in Windows 7.

非常感谢收到任何建议!

Any suggestions gratefully received!

ShellExecute(Handle, 'open', PChar('command.com'), PChar('/c ftp -s:c:\checkout\WebFTPParams.txt 91.208.99.4'), Nil, SW_SHOW);
ShellExecute(Handle, 'open', PChar('command.com'), PChar('/c ftp -s:c:\checkout\WWFTPParams.txt 212.78.232.39'), Nil, SW_SHOW);






不管怎么说,伙计们,但是我发现了问题。我应该一直使用CMD.EXE而不是旧的Command.com。抱歉打扰您了!


Thanks anyway, folks, but I found the problem. I should have been using CMD.EXE rather than good old Command.com. Sorry for bothering you!

推荐答案

Command.com在Windows中不再可用(在DOS中已使用)。使用cmd.exe

Command.com is not anymore in Windows (it was used in DOS). Use cmd.exe

这篇关于Delphi ShellExecute在Windows 7中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆