hi.. i am new to java... in my application , at one place for taking back up i have to copy .mdb file from one place to another ... please can anyone help me, how can i do that ....and also if possible tell me for multiple files of multiple type...how we can copy.. thank you
You might want to learn more about the Process class in the javadoc. It allows you to get the runtime object associated with the current JVM using the getRuntime() method that you can use to perform operations like copy and move files.
You can copy any file byte per byte or byte per byte, unless the operating system blocks access to the file. For .mdb files (I assume we're talking about MS Access) you can check for the presence of a .ldb file with the same name in the same folter. If it's there, there is a program that has the .mdb file open.
Joined: Nov 15, 2008
Thanks a Lot sir, its working fine.....now... thank you.