随笔-104  评论-46  文章-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 一凡 阅读(250) 评论(0)  编辑  收藏 所属分类: JAVA 基础



标题  
姓名  
主页
验证码 *  
内容(请不要发表任何与政治相关的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
该文被作者在 2007-03-28 10:34 编辑过
 
 
相关链接:
网站导航: