1: 2: 3: 4: 5:
@ECHO OFF ECHO. FOR /F "TOKENS=* DELIMS= " %%i IN ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App paths\MSACCESS.EXE" /v Path') DO (SET CR_PATH=%%i) ECHO %CR_PATH% pause
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11:
@echo off setlocal echo. for /F "tokens=* skip=4" %%G in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App paths\MSACCESS.EXE" /v Path') do set CR_PATH=%%G set CR_PATH=%CR_PATH:~12% echo %CR_PATH% pause