我可以使用pscp.exe将文件从Unix系统传输到windows系统,如下所示:
(我正在VBScript上做这个)。
Function vbsMsgBox ()
set sh = CreateObject("WScript.Shell")
sh.Run "C:\Users\msiddiq1\New\PSCP.EXE -pw password username@host:/b_st/batchrepo/BS31GZI C:\Users\msiddiq1\New"
End Function但是,我希望将从下面的find命令返回的所有文件传输到我的windows系统:
find /b_st/batchrepo/BS31GZI -name "*900000007*" # It returns 6 filenames.如何将此命令与上述pscp命令合并?
我无法创建一个新目录。我要用循环吗。请建议一下。
谢谢。
发布于 2015-05-08 09:54:34
我刚刚想明白了。
我试过这样做:
Function vbsMsgBox ()
set sh = CreateObject("WScript.Shell")
sh.Run "C:\Users\msiddiq1\New\PSCP.EXE -pw password username@host:/b_st/batchrepo/BS31GZI/*900000007* C:\Users\msiddiq1\New"
End Function效果很好。
来源:http://the.earth.li/~sgtatham/putty/0.60/htmldoc/Chapter5.html
谢谢。
https://stackoverflow.com/questions/30120673
复制相似问题