Saturday, 6 May 2017

E2B v1.92i available

This version has a new version of grub4dos (\grldr) which has a nice new vol command, so I have also tweaked the UTILITIES menu commands for  'ls (DIR)' and 'List BIOS Disks' to improve the text output and show the volume labels.

I have also tried to improve some of the .cmd scripts which require Admin access so that they will now use Powershell to request Admin access (if Powershell is available). I have tested it on XP, Win7 and Win10 so I hope that I have not broken anything! The main advantage is that the MAKE_THIS_DRIVE_CONTIGUOUS.cmd script now only gives you one UAC prompt instead of two.

Let me know if you find any issues.

Running a .cmd script with Admin rights

If you are interested, I used this single line near the top of each .cmd file

if not "%1"=="am_admin" call powershell -h | find /i "powershell" > nul && if not "%1"=="am_admin" (powershell start -verb runas '%0' am_admin > nul & exit)

The extra code is added so that under WinPE and WinXP, it does not just abort with a 'bad command' error if 'powershell' is not understood.

It checks to see if PowerShell is present and if so, it runs itself again using runas, so the beginning of the script actually runs twice.