หน้าเว็บ

Ad

วันพฤหัสบดีที่ 23 มิถุนายน พ.ศ. 2554

Batch File Copy Folder Tricks

This is the simple trick of batch file code to copy folder, after you knowing more batch commands you can combine all the batch code to make a expert tool for your computer that using windows.ex.Delete,
So, you may need learn the others batch file more then to copy folder, ex.Delete folder, rename folder hidden folder, and etc. the following is the basic CMD code before you make batch file to copy folder/directory :
XCOPY D:\Old-Folder E:\

it's working ?no, it is not. so,how the true code ? (this just my trick to get folder from the other drive), why you should use this trick ? I think with this trick you still get the folder that you need.

IF EXIST D:\Folder-name MD E:\

After knowing my batch code tricks you can develop the code with your best logic idea.if you want to make tool with batch, you may write CMD code into
notepad to make a batch file that saved with .bat extension. here the

example batch file code :

@echo off
IF EXIST D:\Folder-name MD E:\
echo press any key to exit
pause>nul

ex.CopyFolder.bat) CopyFolder.bat save it into .bat extension (ex.CopyFolder.bat) and then double click on CopyFolder.bat file to execute and see the batch program will running to copy folder. I hope it's useful trick. TY ty



sponsored links IT Computer Zone 2010

ไม่มีความคิดเห็น:

แสดงความคิดเห็น