![]() |
|
09 Aug 2019 | #1 |
|
MENU driven BATCH PROGRAM to run programs and perform tasks.
I have created a menu driven batch script [program] that runs specific programs and performs specific tasks from a single source [the Menu]. The idea behind this is it will make it easier for SevenForums members who have been asked to perform one of the actions above [or both] in order to help them resolve their problems/issues.
Using this program saves time [and in some cases possible typing errors which could cause extra problems] by not having to navigate around the OS to get to the relevant program or task that they have been asked to run and to then upload the results us to look at. I have also included some additional features that you might find useful on a daily basis. When you click the .bat file link below it will ask if you want to Run it or Save it. Click Save and save it to the Desktop for example. The downloaded .bat file must be run as an administrator [right-click and select Run as administrator] in an elevated command prompt. Click here [direct download] => Menu_Driven_Batch_File.bat. Here is a screenshot of the menu itself which shows the options available and a brief description of what each one does. ![]() However, here is a more detailed description of the main options available . . . chkdsk [Check Disk] - OPTIONS 1, 2, 3 & 4 . . . chkdsk is a Windows utility program for detecting and repairing any corruptions of the file system [FAT16, FAT32, and NTFS drives]. The options available are . . . [1] chkdsk [non-invasive read-only and detect mode]. This analyses the OS drive and reports any file system errors or corruptions, but doesn’t repair them. [2] chkdsk C: /F [repair mode]. This does repair any file system errors or corruptions [well it tries too] on the OS drive but doesn’t scan for any bad sectors. This cannot be run while the HDD is in use [locked] and is therefore scheduled [displays a prompt] to run at the next reboot. [3] chkdsk C: /R [repair mode]. This does repair any file system errors or corruptions [well it tries too] on the OS drive and does scan for any bad sectors. It then attempts to repair or recover any readable information [implies /F]. This cannot be run while the HDD is in use [locked] and is therefore scheduled [displays a prompt] to run at the next reboot. [4] Extract the wininit log. This Extracts the current status [output data] for either chkdsk C: /F or chkdsk C: /R [which MUST be run FIRST in order to have the current run data available!]. sfc [System File Checker] - OPTIONS 5, 6, 7, 8 & 9 . . . SFC is a Windows utility program for detecting and repairing any corruptions in the protected system files of the OS. If any files are missing or corrupted, they are replaced with a cached copy stored in the compressed folder located at %SystemRoot%\System32\dllcache. The scan results are shown in the cmd prompt window after this process has finished. If any errors are reported, then run SFC again two or three more times, rebooting in between. For some reason, this can make a difference. I think it has something to do with the settings.ini file sometimes showing false positives! Running SFC creates two log files [CBS.log and CBS.Persist.log] in the CBS folder. NOTE: OPTION [5] runs SFC. In this option I have also scripted it to automatically extract the ERRORS ONLY from the CBS.log. This makes it easier to perform the other options available within the SFC section. SURT [System Update Readiness Tool] - OPTIONS 10, 11 & 12 . . . IMPORTANT: These options ONLY apply if SURT has been run FIRST. SURT is a self-installing utility that executes when you install it [this will take a while to complete so be patient!]. It is used because of an inconsistency found in the Windows servicing store that may prevent the successful installation of updates, service packs, and software. It checks for these inconsistencies [integrity] and tries to fix any issues found. It supports all versions of Windows 7 SP1. Install [double-click] SURT [it will automatically run on installation]. SURT 32-bit download => SURT for Windows 7 x86-based Systems (KB947821) [October 2014]. SURT 64-bit download => SURT for Windows 7 x64-based Systems (KB947821) [October 2014]. Running SURT creates two log files [CheckSUR.log and CheckSUR.persist.log] in the CBS folder. SUGGESTION: It is advisable to turn off the power options for sleep etc while running SURT because it could take a while [so be patient!]. Windows Update Log - OPTION 13 . . . By default, the WU client records all the transaction information into the log file located at %SystemRoot%\WindowsUpdate.log. The information generated is useful for troubleshooting and investigating any problems/issues. This option extracts the WindowsUpdate.log information. [1] Screenshots & Files - Upload & Post AND [2] How to Zip a File or Folder [1] How to upload a screenshot or file => How to Upload & Post a Screenshot & File in SevenForums. [2] How to zip & upload a file or folder => How To Zip (Compress) a File or Folder in Windows. I hope you find the program useful! NOTE: Special thanks to Snick for testing, it is appreciated ![]() See my signature below for other programs! |
My System Specs![]() |
. |
|
09 Aug 2019 | #2 |
|
Hello Paul, what does clicking on Menu Driven Batch File.bat actually do? Is it a link to a download or is it going to run a program online?
Thanks. |
My System Specs![]() |
09 Aug 2019 | #3 |
|
Hi iko22,
I hope ths helps! |
My System Specs![]() |
. |
|
09 Oct 2019 | #4 |
|
I'd rather toss the computer out.
|
My System Specs![]() |
10 Oct 2019 | #5 |
|
|
My System Specs![]() |
10 Oct 2019 | #6 |
|
Hi RolandJS,
If you are going to generate a few reports then you might want to look at the BATCH PROGRAMS [Standalone] link as well! I hope thst helps! |
My System Specs![]() |
10 Oct 2019 | #7 |
|
But srsly--
1--this replaces several separate tshooting batch files that you gave us? 2--you'll tell us which item to click? I'm not a DOS person. 3-- I've done sfc /scannow and SURT together in the past, when I couldn't install security updates, and I knew the system had problems, but it told me nothing was wrong. Then I found out updates in general are not really critical at all, and I stopped caring. 4-- do you have time to do this? In my other forum, the resident troubleshooter has his own thread for this, and does nothing else on the site, but he also does it on his own site elsewhere: Virtual Dr Forums-Computer Tech Support click on Intensive Care Unit |
My System Specs![]() |
. |
10 Oct 2019 | #8 |
|
|
My System Specs![]() |
10 Oct 2019 | #9 |
|
"Is pots something like putz or more like spot?" When it's Microsoft, all those terms apply. Paul and Snick stuff -- definitely pots of gold for those in need!
|
My System Specs![]() |
![]() |
Thread Tools | |
Similar help and support threads | ||||
Thread | Forum | |||
Batch File includes program sub-Menu As I am new with Batch files, I hope someone can help me. I want to create a batch file to use a program sub-menu option. This option is located under Program>>Tools>> Convert. Example: Program name: SubtitleEdit.exe Sub-Menu: Tools Sub-Sub-Menu: Batch Convert |
Software | |||
Is it OK to perform other tasks during defragment? Simple questions as in the title :) This question is asked on the assumption that other tasks should NOT be performed when burning a disc.... |
Performance & Maintenance | |||
My laptop locks up when I perform certain tasks I've been having this issue for maybe three weeks now, and I'm hoping someone can at least shed some light on what might be causing it. I've got an ASUS K50IJ notebook, and lately, when I try to Save, Save As or Browse files on my computer, it freezes. This doesn't happen all the time; it's pretty... |
BSOD Help and Support | |||
Launch all programs in the start menu all at once possibly using batch Launch all programs in the start menu all at once possibly using batch Yes, hey, hello well I came across this video a while ago and although what I'm after isn't linked to the main point of the video, for my own testing purposes I would like to be able to do this myself also the Office only one... |
General Discussion | |||
Start Menu Program Tasks The new feature of Windows 7 that puts the little arrow on the right side of certain recently used programs, and when expanded shows different tasks. How do I disable this feature? I don't want to see the little arrows, all I do is open the programs, the arrows sometimes get in the way and annoy... |
Customization |
Our Sites |
Site Links |
About Us |
Find Us |
Windows 7 Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows 7" and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd All times are GMT -5. The time now is 08:23. |
![]() ![]() |