Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ɾ³ý.svn .cvsµÈÎļþ¼ÐµÄjava´úÂë

ÏîÄ¿ÖÐÓеÄÎļþ¼ÐÔ­À´ÊÇsvn°æ±¾¿ØÖƵģ¬ÏÖÔÚ²»Ïë¿ØÖÆÁË£¬¾ÍÏñ°ÑÕâ¸öÎļþ¼Ð´«¸ø±ðÈË»òÕß×Ô¼º±¸·Ý£¬µ«ÊÇ¿´µ½ÄÇô¶à.svnÎļþ¼ÐʵÔÚ²»Êæ·þ£¬Ð´ÁËÏÂÃæµÄ¼òµ¥³ÌÐòÓÃÀ´É¾³ýÕâЩÎļþ£¬ÒÔºóÐèҪɾ³ýµÄ»°£¬ÉèÖúÃÎļþ¼Ð·¾¶ºÍҪɾ³ýµÄÎļþ¼ÐÃû×ÖÅÜһϾÍÐÐÁË¡£
import java.io.File;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author zhaorong
*/
public class DeleteFile {
public static String deleteFileName = ".svn";
public static String deleteDirectory = "F:/ÏîÄ¿/jalis/svn";
public static void deleteFile(File file) {
if (file.isDirectory()) {
File[] files = file.listFiles();
for (File f : files) {
deleteFile(f);
}
}
System.out.println("delete file: "+file.getPath()+"/"+file.getName());
file.delete();
}
public static void deleteDestFile(File file) {
if (file.isDirectory()) {
if (file.getName().equals(deleteFileName)) {
deleteFile(file);
} else {
File[] files = file.listFiles();
for (File f : files) {
deleteDestFile(f);
}
}
}
}
public static void main(String[] args) {
File file = new File(deleteDirectory);
deleteDestFile(file);
}
}
ɾ³ýÇ°Îñ±Ø×öºÃ±¸·Ý£¡


Ïà¹ØÎĵµ£º

java»·¾³±äÁ¿ÅäÖÃ[ÕûÀí]

JDKµÄ°²×°Â·¾¶
-------------
±äÁ¿Ãû JAVA_HOME
±äÁ¿ÖµÊ¾Àý D:\Program Files\Java\jdk1.6.0;
ËÑË÷ÀàµÄĿ¼
------------
±äÁ¿Ãû CLASSPATH
±äÁ¿ÖµÊ¾Àý D:\Program Files\Java\jdk1.6.0\lib\tools.jar;
    D:\Program Files\Java\jdk1.6.0\lib\dt.jar;
JdkµÄbinĿ¼
------------
±äÁ¿Ãû PATH(Ò ......

³É¹¦Ç©Ï±¦ÐÅÈí¼þjavaÑз¢¹¤³Ìʦ

¾­¹ýÁËÒ»ÖܵÄŬÁ¦£¬³É¹¦Ç©ÏÂÁËÉϺ£±¦ÐÅÈí¼þÎ÷°²·Ö¹«Ë¾¡£
 
ÔÚÕâÀ¼òµ¥·ÖÏíÒ»ÏÂÕâ´ÎµÄ¾­Àú¡£
 
Ê×Ïȼòµ¥³ÂÊöϸöÈ˵ÄһЩ»ù±¾ÐÅÏ¢£¬Õý¹æͳÕб¾¿Æ·Ç¼ÆËã»úרҵ£¬2008-2009Äê8Ô½ÓÊܶ«·½±ê×¼Èí¼þ¹¤³ÌʦÅàѵ£¬Íê³ÉÁËһЩ±È½ÏÍêÕûµÄÏîÄ¿£¬ÕÆÎÕÁË»ù±¾µÄJ2EE¿ª·¢µÄºËÐļ¼Êõ¡£Åàѵ½áÊøÁË£¬²Î¼ÓÁËһЩ֪ÃûÆóÒµµÄУ԰ ......

javaÖÐʹÓÃjdbcÁ¬½Ósql server 2005

×¼±¸¹¤×÷
Ê×ÏÈ£¬²Ù×÷ϵͳÖа²×°ºÃSQL Server 2000/2005£¬Èç¹ûϵͳÖж¼×°ÓÐ2000ºÍ2005°æ£¬¼ÇµÃÍ£ÓÃÒ»¸ö£¬Ö»¿ªÒ»¸öÐÐÁË¡£
È»ºó£¬µ½Î¢ÈíÍøÕ¾ÏÂÔØMicrosoft SQL Server 2005 JDBC Driver 1.1
£¬Ò²¿ÉÒÔʹÓÃÕâ¸öµØÖ·Ö±½ÓÏÂÔØ
¡£
½âѹsqljdbc_1.1.1501.101_chs.exe£¬°Ñsqljdbc_1.1¸´ÖƵ½%ProgramFiles%£¨Èç¹ûϵͳÔÚCÅÌÔòΪC:\ ......

Java°æµÄdatediff

¡¡¡¡MSSQLÖÐÌṩÁ˸ödatediffº¯ÊýÓÃÀ´¶ÔÁ½¸öʱ¼ä½øÐмõ·¨²Ù×÷£¬µ«ÔÚJavaÖÐȴûÓУ¬Èç¹ûÎÒÃÇÏëÖªµÀÁ½¸öÈÕÆÚ¼äÏà¸ôÁ˶àÉÙÌ죬»òÊÇÏà¸ôÁ˶àÉÙ¸öСʱÔòÒªÊÖ¹¤¼ÆËã¡£ÏÂÃæ´úÂëÄ£·ÂMSSQLµÄdatediffº¯ÊýÌṩÁËʹÓò»Í¬Ê±¼ä¼ä¸ôÀ´¼ÆËãÁ½¸öʱ¼äÏà²îµÄʱ¼ä¼ä¸ôµÄÊýÄ¿£¬±ÈÈçtimeIntervalΪdayÔò·µ»ØÏà²îµÄÌìÊý£¬ÎªmonthÔò·µ»ØÏà²îµÄÔÂÊý ......

ËĸöÓꦵÄjava±à³ÌÏ°¹ß

John O'Hanley µÄÕâƪÎÄÕÂÁоÙÁËËĸöÓꦵÄjava±àÂëÏ°¹ß£¬²¢Ìá³öÁ˸ÄÕý·½°¸¡£
ÕâËĸöÏ°¹ßÆÕ±é´æÔÚÓÚjava³ÌÐòÔ±ÖУ¬²¢ÇÒÒѾ­±»¹ã·º½ÓÊÜ£¬´ó¼Ò¶¼Ï°ÒÔΪ³££¬Á÷¶¾ÉõÔ¶¡£
1.¶Ô¾Ö²¿±äÁ¿(local variables)£¬×Ö¶Î(fields)£¬²ÎÊý(method arguments)ÕâÈýÖÖ±äÁ¿µÄÃüÃûûÓÐÇø·Ö£¬Ôì³ÉÁË´úÂëµÄÔĶÁÀ§ÄÑ£¬Ôö¼ÓÁË´úÂëµÄά»¤³É±¾¡£
×÷Õß ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ