Hi Guy/Gul .......
I have a some problem of take back up of mdb file i have writen one little java pro. for got the copy of mdb file. It work properly up to copy but my original file is password protected that why when i open new copied file it will not opened. Baz that copied file r correpted but it same as original with byte. So it u have a any idea then help me.
Thanks a lots dear friends.
kkjava
import java.io.*;
import java.io.File;
public class BackUpOfCCMS{
public static void main(String args[])throws Exception{
BufferedReader br = new BufferedReader(new FileReader(new File("D://rnd/ccms.mdb")));
String s = null;
FileWriter fo = new FileWriter("c://backup/ccms.mdb");
while((s = br.readLine()) != null){
fo.write(s);
}
fo.close();
br.close();
System.out.println("Done Succesfully");
}
}
take it this and run it's run properly but when u open the new file it is not allow to open it. before take this code pl. make one ccms.mdb (any access file) with password protected. then go ahead
I have a some problem of take back up of mdb file i have writen one little java pro. for got the copy of mdb file. It work properly up to copy but my original file is password protected that why when i open new copied file it will not opened. Baz that copied file r correpted but it same as original with byte. So it u have a any idea then help me.
Thanks a lots dear friends.
kkjava
import java.io.*;
import java.io.File;
public class BackUpOfCCMS{
public static void main(String args[])throws Exception{
BufferedReader br = new BufferedReader(new FileReader(new File("D://rnd/ccms.mdb")));
String s = null;
FileWriter fo = new FileWriter("c://backup/ccms.mdb");
while((s = br.readLine()) != null){
fo.write(s);
}
fo.close();
br.close();
System.out.println("Done Succesfully");
}
}
take it this and run it's run properly but when u open the new file it is not allow to open it. before take this code pl. make one ccms.mdb (any access file) with password protected. then go ahead