随笔-204  评论-90  文章-8  trackbacks-0
Runtime r  =  Runtime.getRuntime();
String strCmd 
=   "" ;
    String sFile  = "d:\\aa.txt";
    String dFile = "d:\\bk\\";
try   {
            strCmd 
=   " cmd /C start copy  "   +  sFile  +   "   "   +  dFile  +   " \n cmd /C exit " ;
             r.exec(strCmd);

}
  catch (IOException e)  {
   e.printStackTrace();
}



posted on 2007-03-28 10:32 一凡 阅读(635) 评论(0)  编辑  收藏 所属分类: JAVA 基础

只有注册用户登录后才能发表评论。


网站导航: