Saturday, May 30, 2009
Tuesday, May 19, 2009
Exception Log file generator.
//This is a static function to save the exception in a file.
public static boolean writeToFile(String text)
{
Date recentdate=Calendar.getInstance().getTime();
logger=new File("C:\\File_Name.txt");
try {
FileWriter fw = new FileWriter(logger, true);
fw.write("\n"+recentdate+": "+text);
fw.flush();
fw.close();
} catch (IOException ex) {
JOptionPane.showMessageDialog(null, ex);
return false;
}
return true;
}
public static boolean writeToFile(String text)
{
Date recentdate=Calendar.getInstance().getTime();
logger=new File("C:\\File_Name.txt");
try {
FileWriter fw = new FileWriter(logger, true);
fw.write("\n"+recentdate+": "+text);
fw.flush();
fw.close();
} catch (IOException ex) {
JOptionPane.showMessageDialog(null, ex);
return false;
}
return true;
}
Friday, May 8, 2009
To set "start command prompt here" in right click of all folder.
First go to run:
then write "regedit"
Then goto:-
HKEY_CLASSES_ROOT/Directory/shell/
Edit the default here.
(Default) Start Command Prompt Here
After that create key prompt and in prompt create another key command then edit the value as in bold letter.
HKEY_CLASSES_ROOT/Directory/shell/prompt/command
(Default) cmd.exe /kcd%1
then write "regedit"
Then goto:-
HKEY_CLASSES_ROOT/Directory/shell/
Edit the default here.
(Default) Start Command Prompt Here
After that create key prompt and in prompt create another key command then edit the value as in bold letter.
HKEY_CLASSES_ROOT/Directory/shell/prompt/command
(Default) cmd.exe /kcd%1
Avoid windows crash by delete some unused files from windows folder
Go to internet explorer then type (System Drive like 'C'):\WINDOWS\system32\dllcache
then delete all the files.
then delete all the files.
Subscribe to:
Posts (Atom)