Posted by SarayuGeethanjali on September 18, 2007 at 08:46:20:
Hi,
UninstallTool.cmd(batch file)
=============================
"C:\Program Files\Java\jre1.5.0_02\bin\javaws.exe" -uninstall "D:\workspaces\Eclipse_Build1.0.E\MTT\data\\AMstartup.jar"
I created one batch file(UninstallTool.cmd) with above lines and these lines are related to Uninstall of my application. By calling these batch file I am able to uninstall my application.
But Here I need confirmation from the users. If the users say "y" then only these lines should be executed.
Please let me know what commands do I need to add to get confirmation.
Eg:
boolean isConfirm = getConfirmation();
if(isConfirm)
{
"C:\Program Files\Java\jre1.5.0_02\bin\javaws.exe" -uninstall "D:\workspaces\Eclipse_Build1.0.E\MTT\data\\AMstartup.jar"
}
Could you please let me know how to get confirm Y/N options with dos commands.
OS : Windows Professinal 2000
DOS : Microsoft Windows 2000 [Version 5.00.2195]
Thanks,
Sarayu.