DIRECTO复制批处理文件命令 [英] Directo copy batch file command

查看:110
本文介绍了DIRECTO复制批处理文件命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何复制包含使用批处理文件中的另一个文件夹和文件到另一个位置的文件夹(位于批处理文件的位置)...
我使用下面的命令尝试,但没有工作。

How can copy a folder(located in the location of batch file)containing another folders and files to another location using batch file... i am trying using command below but not working..

xcopy /E /Y %~p\DagwoodLoki@hp.com\* C:\Loki 

请帮我

推荐答案

也许这?

xcopy /E /Y "%~dp0\DagwoodLoki@hp.com\*" C:\Loki

%〜DP0 被取代为驱动器+路径批处理文件,不包括引号,如果有的话。

%~dp0 is substituted with drive+path to the batch file, without quotes, if any.

这篇关于DIRECTO复制批处理文件命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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