Here is my code :
@echo off
for /f "tokens=2*" %%a in ('REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\NCR\APTRA\Aggregate
Installer\Inventory\Aggregate\APTRA Self-Service Support" /f 06.04.01') do set "AppPath=%%~b"
echo %AppPath%
cmd /k
So when we run this batch file command prompt will open, so my requirement is when i click on Enter we need to break the FOR LOOP as the command prompt is not getting closed, Could any one please help me out ?