import java.io.File;
import java.io.IOException;
public class Yincang
{
public static void main(String[] args)throws IOException
{
File file =new File("D:\\cc.text");
if(file.exists())
file.delete();
file.createNewFile();
String sets="attrib +H \""+file.getAbsolutePath()+"\"";
System.out.println(sets);
Runtime.getRuntime().exec(sets);
}
}
import java.io.IOException;
public class Yincang
{
public static void main(String[] args)throws IOException
{
File file =new File("D:\\cc.text");
if(file.exists())
file.delete();
file.createNewFile();
String sets="attrib +H \""+file.getAbsolutePath()+"\"";
System.out.println(sets);
Runtime.getRuntime().exec(sets);
}
}