New
#81
OP had problems posting tuneup.bat results: post #33
Occasional BSOD: Event errors on many harddisk
OP had problems posting tuneup.bat results: post #33
Occasional BSOD: Event errors on many harddisk
@Ztruker, I found an alternative toSETLOCAL EnableDelayedExpansion
Code:::========================================================================================= Title PowerShell is zipping the log files... & mode con cols=120 lines=10 Set A=%LOG% & Set B=%F%\energy-report.html & Set C=%F%\battery-report.html Set D=%F%\sleepstudy-report.html & Set E=%F%\system-sleep-diagnostics.html For %%# in (%A% %B% %C% %D% %E%) Do (If exist %%# Call:[Operation] "%%#") PowerShell.exe Compress-Archive -Path %zipSource% -DestinationPath %ZIP% >NUL 2>&1 Del "%temp%\(+).vbs" & Set "CMD=%Temp%\CMD.cmd" & Set "#=Echo Echo" (Echo @echo off^&Title Operations completed successfully.^&mode con cols=89 lines=14^&color 17 %#%. %#% ####################################################################################### %#% # # %#% # Get_Powercfg_info.bat # %#% # # %#% # The log files have been put into the following ZIP file: # %#% # # %#% %ZIP%.zip %#% # # %#% # Please upload the file as an attachment to your post on TenForums. # %#% # Press any key to close this window. # %#% # # %#% ####################################################################################### Echo Pause ^>nul ^& Exit)> "%CMD%" & Timeout 1 /nobreak>Nul & Start "" "%CMD%" & Exit :[Operation] If not "%zipSource%"=="%~1" (Set "$=%zipSource%") If "%zipSource%"=="" (Set "zipSource=%$% %~1") else (Set "zipSource=%$%, %~1")
There are new threads with Windows upgrade failure.
I'd like to test drive the commands to collect setupmem.dmp, etc. if available.
What is the latest script?
%SystemDrive%$Windows.~bt\Sources\Rollback
%WinDir%\Panther\NewOS\Rollback
setupapi.dev.log
BlueBox.log
etc.
In this thread:
Frequent BSOD'S for the past 4 months
OP posted incomplete results for each:
tuneup.bat
disparinfo.bat
Thx.
Please add to other scripts so that it is available.
I have no permission to add it. Do you?
I've not tried modifying them.
Excellent point, and one that needs to be addressed, especially VBScript in TF batch files.
Aside from the security issues using VBScript, who will understand what this code is doing...
(Net session >nul 2>&1)&&Goto:✱||Echo CreateObject^("Shell.Application"^). ^
ShellExecute "%~0","✶","","RunAs",1 >"%temp%\(+).vbs"&&"%temp%\(+).vbs"&EXIT /B
You could elevate the batch file using PowerShell.
It would be safer, and probably easier to read, with some added documentation.
Last edited by OldNavyGuy; 02 Nov 2020 at 04:12.