sorry i think my question is not clear i have to programatically create shortcut for a batch file through java(my aim is to put this shortcut on desktop for my application) and use it.please help me out soon Rajesh
friends, i have found answer myselves.it might be useful to others also so i wish to give solution it is by setting JFrameObject.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE ); bye rajesh