Logman Posted August 22, 2012 Posted August 22, 2012 (edited) I wrote a batch script (bat) designed for Windows Recovery Console (SHITF + F10 after boot from DVD), which automatically moves the Users and ProgramData folder to another drive and then create a junction link (mklink) to target destinations. But if I want to use system restore via restore point I have to boot from DVD again, start the Windows Recovery Console, and both linked folder move back to system drive... Batch script is very uncomfortable and I plan to rewrite it to AutoIt (it will not be a problem), but I need advice... How to check that AutoIt script (EXE) is executed from the Windows Recovery Console? Is there a way how to check that Windows is(not) loaded? (I do not know if it is appropriate to check if process explorer.exe exists...) Edited August 22, 2012 by Logman
JohnOne Posted August 22, 2012 Posted August 22, 2012 As far as I am aware, windows needs to be loaded for autoit to work. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Logman Posted August 22, 2012 Author Posted August 22, 2012 (edited) I tried to run a compiled exe including a GUI in the recovery console and it works. Edited August 22, 2012 by Logman
MrMitchell Posted August 22, 2012 Posted August 22, 2012 Is explorer.exe process running in the Recovery Console?
JohnOne Posted August 22, 2012 Posted August 22, 2012 On 8/22/2012 at 8:55 PM, 'Logman said: I tried to run a compiled exe including a GUI in the recovery console and it works.Then you have answered your own question, if it runs, windows is loaded. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Logman Posted August 22, 2012 Author Posted August 22, 2012 (edited) On 8/22/2012 at 9:02 PM, 'MrMitchell said: Is explorer.exe process running in the Recovery Console?No, explorer.exe is not running. Edited August 22, 2012 by Logman
Logman Posted August 22, 2012 Author Posted August 22, 2012 I planned to check is process explorer.exe exists, but for moving the system folders like ProgramData and Users I want to use at least one other method for check is script is running only in recovery console. For example, after boot to a safe mode with command prompt the process explorer.exe is not running too, but in this mode, you cannot move the system folders. This is the main reason why I asked for a different method. I use robocopy to move both folders and if the OS is loaded the robocopy.exe reports an error, but some files and folder are already moved. I forgot to write that my OS is a Windows 7 64-bit
rover Posted August 23, 2012 Posted August 23, 2012 The Win PE shell of setup is winpeshl.exe, not explorer.exe There are only a few processes running, run taskmgr from the recovery prompt. I see fascists...
Logman Posted August 24, 2012 Author Posted August 24, 2012 Yes, that's it! In the recovery console:explorer.exe ... is not runningsetup.exe ... is runningwinpeshl.exe ... is runningIt will be sufficient to verify that recovery console is running.Thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now