IR5 - The Official Windows 7 Rearm Solution

Discussion in 'MDL Projects and Applications' started by timesurfer, May 10, 2010.

Thread Status:
Not open for further replies.
  1. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    That line will delete the pseudo reset.bat if the real reset.bat is not in C: drive.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #602 timesurfer, Jun 19, 2010
    Last edited: Jun 19, 2010
    (OP)
    I will test with that line included in 1.bat
     
  3. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    #603 MasterDisaster, Jun 19, 2010
    Last edited by a moderator: Apr 20, 2017
    In a system like yours where you don't have the hidden partition, what happens is pseudo reset.bat is created in your C: drive first
    Code:
    @echo off 
    for /f "tokens=2 delims==" %%A in ('"wmic volume where SerialNumber="105138088" get DriveLetter /format:list"') do set dl=%%A
    %dl%\reset.bat 
    
    then the real reset.bat overwrites the pseudo file.
    The following line in reset.bat returns false when run in RE, so the reset.bat does not get deleted there but is cleaned up after the reboot.
    Code:
    IF NOT "%~d0" EQU "C:" del C:\reset.bat
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #604 timesurfer, Jun 19, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    I'm in vb with 7 tried install and didn't boot into RE

    Going to try it again but with f8

    Are you certain the code I showed you will work with IR4

    I notice it doesn't put reset in c
     
  5. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    #605 MasterDisaster, Jun 19, 2010
    Last edited: Jun 19, 2010
    Try my batch file.

    Maybe you are getting the same error as ingdiegotorres

    That is not right, it should definitely create reset.bat in C:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    It doesn't even put task

    Trying yours
     
  7. MasterDisaster

    MasterDisaster MDL Expert

    Aug 29, 2009
    1,255
    675
    60
    You would not have run as Administrator.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
  9. Super_User

    Super_User MDL Junior Member

    Apr 14, 2010
    92
    55
    0
    @ timesurfer,

    Is the version 2.8 just for MD to test?
     
  10. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    It's for everybody to test. Can you test this in virtual and real machine please and what is your OS on c, d, e?
     
  11. Super_User

    Super_User MDL Junior Member

    Apr 14, 2010
    92
    55
    0
    Already did. OS is on D.

    This part of the new directions doesn't work: "3) Select Command Prompt and type "C:IR4" (without quotes) then press enter". However typing "d:ir4" works just fine.
     
  12. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    Well then that's a clue something is wrong since it's suppose to take care of D: or E: if typed C:

    I will test MD's again on my vb just to be sure
     
  13. Super_User

    Super_User MDL Junior Member

    Apr 14, 2010
    92
    55
    0
    Here's the error message:

    Description = Invalid Query
    "\IR4.bat" is not recognized as an internal or external command, operable program or batch file.
     
  14. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    Strange works fine on both vb and real for me and you said is wan't the IR4 part just the C: part

    Thanks for testing
     
  15. Super_User

    Super_User MDL Junior Member

    Apr 14, 2010
    92
    55
    0
    Yes. Just finished testing it again on an "untouched" win7 VM... same thing... c:ir4 not working but d:ir4 works fine.
     
  16. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    lol...Funny it worked on MD and me... Hmm...

    Well at least ours have same problem

    Well it's a cooler idea...lol

    Thanks again...lol
     
  17. Super_User

    Super_User MDL Junior Member

    Apr 14, 2010
    92
    55
    0
    Which batch file the version 2.8 has in it? Yours or MD's?
     
  18. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #620 timesurfer, Jun 20, 2010
    Last edited: Jun 20, 2010
    (OP)
    console and GUI are little different but we're using same updated code

    Right click his batch and my GUI and it will extract file to see code then you can see for your self remember this is the "open source" project

    Stay current with the first page as I always update new "IR4 Facts"