首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

用xp_cmdshell 能否COPY整個文件夾?解决方案

2012-01-20 
用xp_cmdshell 能否COPY整個文件夾?用xp_cmdshellcopyc:\testD:\test或xp_cmdshellcopyc:\test\*.*D:\test

用xp_cmdshell 能否COPY整個文件夾?
用xp_cmdshell   'copy   c:\test   D:\test
或xp_cmdshell   'copy   c:\test\*.*   D:\test
為何只能COPY其中的文件而不能COPY子文件夾呢?
有沒有其它的辦法COPY整個文件夾?


[解决办法]
需要使用 xcopy c:\test D:\test /s
[解决办法]
不过需要有外部命令支持
[解决办法]
jwt1982(叛逆者)已经说了啊,XCOPY外部命令.

你先在cmd提示符下找下有没有XCOPY.EXE,用dir xcopy.exe /s
找到会告诉在哪个目录下有,一般在c:\winnt\system32下.
然后你再使用: c:\winnt\system32\xcopy c:\test D:\test /s

热点排行