虽能告诉我 shell.application 对象在windowsxp下不能运行的问题
我要在程序运行的时候在局域网中连接到服务器的一个目录:
代码如下
set objshell = CreateObject("Shell.Application")
objshell.shellexecute "net","use \\server\files guest /user:guest",0,0,0
set objShell = nothing
这段话在window2000下运行正常,但是当客户端是xp的时候,会报告一个错误:
该文件没有与之关联来执行该操作,请在控制面板的文件夹选项中创建关联。