想实现:将服务器上\\192.168.1.50\soft\updatepdmoa\update.exe拷贝到当前登录域网户名的桌面上。
可总是报错,求正确方法。感谢~~~
Dim WshShell,path,oShell,fso
Set WshShell=Wscript.CreateObject("Wscript.Shell")
path=WshShell.SpecialFolders("Desktop")
Set fso = Wscript.CreateObject("Scripting.FileSystemObject")
set c=fso.getfile("\\192.168.1.50\soft\updatepdmoa\update.exe")
c.copy(path) //错在这里吗?怎么拷贝到当前用户桌面呢?
set fso = nothing
WScript.quit
新学VBS,实在搞不懂错在哪了,盼高手解答一下。非常感谢 !!!!!!!!!!!!
可总是报错,求正确方法。感谢~~~
Dim WshShell,path,oShell,fso
Set WshShell=Wscript.CreateObject("Wscript.Shell")
path=WshShell.SpecialFolders("Desktop")
Set fso = Wscript.CreateObject("Scripting.FileSystemObject")
set c=fso.getfile("\\192.168.1.50\soft\updatepdmoa\update.exe")
c.copy(path) //错在这里吗?怎么拷贝到当前用户桌面呢?
set fso = nothing
WScript.quit
新学VBS,实在搞不懂错在哪了,盼高手解答一下。非常感谢 !!!!!!!!!!!!
