Shell运行时错误5,无效的过程调用或参数 [英] Shell run-time error 5, invalid procedure call or argument

查看:530
本文介绍了Shell运行时错误5,无效的过程调用或参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,shell总是对我来说很容易,现在它开始变得烦人,因为我不知道wats错了


继承了简单的代码:

展开 | 选择 | Wrap | 行号

解决方案


ok,shell始终是对我来说很容易,现在它开始变得烦人,因为我不知道wats错了


继承了简单的代码可能:

展开 | 选择 | Wrap | 行号





我认为这是因为第二个参数,vbmaximizedfocus也许你没有设置常量,为什么不尝试使用constan'的值,比如


a = Shell(C:\Program Files \Internet Explorer \ Iexplore.exe http://www.google.ca",3)


希望有助于



nope ,没有工作=(,谢谢你尝试



我认为这是因为第二个参数,vbmaximizedfocus可能你没有设置常量...



这会产生编译错误,而不是运行时。


我认为有人最近说壳牌无法处理带有空格的路径。也许ShellExecute更好。看看此主题


ok, shell always used to be easy for me, now its starting to get annoying cause i dont know wats wrong

heres the simplist code possible:

Expand|Select|Wrap|Line Numbers

解决方案

ok, shell always used to be easy for me, now its starting to get annoying cause i dont know wats wrong

heres the simplist code possible:

Expand|Select|Wrap|Line Numbers


Hi,
I think this is because of the second argument, "vbmaximizedfocus" maybe you don have the constants set, why dont you try using the constan''s value instead, something like

a = Shell("C:\Program Files\Internet Explorer\Iexplore.exe http://www.google.ca", 3)

hope that helps

nope, didnt work = ( , thanks for making an attempt tho


I think this is because of the second argument, "vbmaximizedfocus" maybe you don have the constants set...

That would produce a compile error, not runtime.

I thought somebody was saying recently that Shell couldn''t handle a path with spaces in it. Perhaps ShellExecute is better. Have a look at this thread.


这篇关于Shell运行时错误5,无效的过程调用或参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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