i am using com.ms.win32.kernel32 library to copy files to system
folder.
Kernel32 k=new Kernel32();
int size=250;
StringBuffer sb=new StringBuffer(300);
k.GetTempPath(size,sb);
String temp=sb.toString();
String Wintemp=temp.substring(0,temp.length()-1);
//Wintemp-->WindowsTempFolder eg:"D:/docume~1/softbe~1/local~1/temp/"
boolean r=k.CopyFile("D://index.html","Wintemp",false);
MessageBox.show(cacheEntryInfo.lpszLocalFileName+" result "+r);
if i am copying to other non-system folders,it gets copied
succesfully,but when trying with system folders it fails.
So anyone help me to fix this problem.