@echo off
cls
cd /D "%AppData%\Macromedia\Flash Player\#SharedObjects"
FOR /F "tokens=*" %%a in ('dir /B') do @SET randomword=%%a
if %processor_architecture%==x64 goto 64bit
if %processor_architecture%==AMD64 goto 64bit
FOR /F "tokens=2,*" %%a in ('REG QUERY "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Machinarium" /v UninstallString') DO @SET entry=%%b
goto next
:64bit
FOR /F "tokens=2,*" %%a in ('REG QUERY "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Machinarium" /v UninstallString') DO @SET entry=%%b
:next
set apppath=%entry:~0,-11%
set "savepath=%AppData%\Macromedia\Flash Player\#SharedObjects\%randomword%\localhost\%entry:~3,-11%\machinarium.exe\Machinarium.sol"
cd /D %apppath%
if not exist Machinarium.sol goto nosol
copy /V /Y Machinarium.sol "%savepath%"
:nosol
machinarium.exe
copy /V /Y "%savepath%" Machinarium.sol
:end
It works. Thank You.