Before: Code: :InstallIR7 cls schtasks /query | FINDSTR /I "IR7" >NUL IF ERRORLEVEL 1 ( echo. ) ELSE ( echo IR7 is already installed... ping -n 5 127.0.0.1 >nul GOTO start ) mode con: cols=42 lines=2 After: Code: :InstallIR7 cls cscript.exe %windir%\system32\slmgr.vbs /dlv | FINDSTR /I "Licensed" >NUL if %errorlevel% equ 0 Echo.Already Licensed.... exiting. ping -n 5 127.0.0.1 >nul & GOTO :Exit schtasks /query | FINDSTR /I "IR7" >NUL IF ERRORLEVEL 1 ( echo. ) ELSE ( echo IR7 is already installed... ping -n 5 127.0.0.1 >nul GOTO start ) mode con: cols=42 lines=2 Keeps a already Licensed machine from going through the install process.
Edited my last post to show other drive stuff that is not needed Code: for /f "tokens=2 delims==" %%A in ('"wmic volume where DriveLetter="%SystemDrive%" get SerialNumber /format:list"') do set sn=%%A for /f "tokens=2 delims==" %%A in ('"wmic volume where SystemVolume="true" get DeviceId /format:list"') do set sd=%%A Or maybe we do need some of what's in red to determine where the Key.bat/Key.vbs should go MasterDisaster wrote this so I haven't really gone through it yet to see how to keep it and adapt it to our needs without using RE
Good question: It ran inside windows and placed IR7.bat in %systemdrive% or hidden partition Then from RE user would enter C:IR7 to make that IR7.bat file run Then upon restart version key would run and watermark would appear and disappear and thus installation was successful And key would install silent which is ideal
When I place the Key.bat into %systemdrive% and restart it works fine via run by Key task Am having problems writing it to %systemdrive% from IR7 Any help?
Can you post me the code you are working with and then color code the areas where you've got code that isn't working when it comes to writing the file to systemdrive.
When I have troubles with writing batch I will try to screen capture the force closing cmd prompt which will usually have a error that will assist with diagnosing why a script isn't working.
I do the same sometimes... Task is running but Key.bat is not working Ran Key.bat directly and also not working Something has changed So 1. Key not installing 2. Task not deleting 3. Key.bat not deleting @MrJinje Did you notice how BatonMAN deleted WPA key inside windows ...lol He just moved to %temp% then renamed with powershell then deleted ...lol 4 years and it was so simple ...lol
Those two lines might actually be a one liner. Guess we need the ")" back. Code: echo FOR /F "TOKENS=2*" %%A IN ('FINDSTR/B :: "%~f0"') DO (REG QUERY %K% /V %V% | FINDSTR /IE "%%A" >NUL && (%L% %%B)) >>%SystemDrive%\Key.bat