开发者

seting up a template folder copy/ past system with batch

开发者 https://www.devze.com 2023-03-06 20:34 出处:网络
I have a foldering system setup consistingof 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

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

精彩评论

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