一个需求,网上了半天都是错了,所以记一下吧,方便你我. copy是文件拷贝,文件夹拷贝需要用到xcopy @echo off::当前盘符set curPath=%cd%set digPath ="%curPath%tool\dig"set PATH=%PATH%;%digPath%wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%pa
public class copyDirectoryDemo { public static void main(String[] args) { File srcFolder = new File("C:\\Users\\MA\\Desktop\\IOtest"); File destFolder = new File("C:\\Users\\MA\\Desktop\\IOtest\\test"); fun(srcFolder, destFolder); } pu