开发者

seting up a template folder copy/ past system with batch

I have a foldering system setup consisting of a “master folder” wich varys in name holds two sub folders, the sub folders though are always called C开发者_运维问答TB and DWG. I want the contents. of the DWG folder always to be coppied to the desktop and the contents of the CTB to always be coppied to C:\ICT\Autocad_2010\CTB. Remembering that the master folder varys in name pending on the project.

Is this possible with batch?

somthing like:

XCOPY %0\DWG\*.* c:\ICT\AutoCAD_2010\CTB

Nevermind i got it

XCOPY "%cd%\DWG\*.DWG" c:\

however how do i copy it to the desktop?


try this to copy to the current user desktop

xcopy "dwg\*.dwg" "%Homedrive%%Homepath%\desktop"

or this to copy to all users desktop

xcopy "dwg\*.dwg" "%allusersprofile%\desktop"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜