New
#91
Ask the administrators to make a decision about VBScript so as to end the argument.
Ask the administrators to make a decision about VBScript so as to end the argument.
You can't modify someone else's post but you can create a new post. If you do please follow the existing structure. I'll attach a txt file of one of the current batch file posts with all the BBCODE showing so you can use it as a model if you want.
Sample_Batch_Repository_Post.txt
I would have to update the index (first post) to point to the new batch file after you added it as a new post in the BSOD repository since I am the owner of that post. It's the same as a post in any forum.
Brink can also edit any post and has done so for me several times when I couldn't figure out how to do something. He's pretty amazing and responsive but I don't like to bother him unless necessary.
Upgrade_failure_info.bat is a good name for the batch file.
Matthew, would you change the VBS code to Powershell for elevation so we can try it with this batch file?
Ran the script and it completes okay but I don't have a lot of the directories it's looking for so there are quite a few errors.
Since they aren't visible i guess it doesn't matter. Just wondering though, should you check for the existence of the folder before trying to copy it or just try to copy it and ignore the error. Since the error doesn't show unless you are watching real close it really doesn't matter.Code:C:\WINDOWS\system32>(Net session 1>nul 2>&1 ) || (PowerShell start """C:\Users\ztruk\Desktop\Upgrade_failure_info (version 5).bat""" -verb RunAs & Exit /B ) C:\WINDOWS\system32>Echo. & Echo The script is collecting information ... The script is collecting information ... C:\WINDOWS\system32>For /F "tokens=2 delims==" %# in ('wmic OS Get localdatetime /value') Do (Set "Time=%#" ) " ) INDOWS\system32>(Set "Time=20201102132407.922000-240 C:\WINDOWS\system32>Set "Year=2020" & Set "Month=11" & Set "Day=02" C:\WINDOWS\system32>Set "Hour=13" & Set "Minute=24" & Set "Second=07" C:\WINDOWS\system32>Set "Date+Time=2020-11-02_at_13-24-07" & Set "F=Upgrade_failure" C:\WINDOWS\system32>Set "Z=C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-24-07" & If exist "C:\Users\ztruk\AppData\Local\Temp\Windows" RD /s /q "C:\Users\ztruk\AppData\Local\Temp\Windows" C:\WINDOWS\system32>Set "R=Windows\Panther" & For %# in ("C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_*.zip") Do (Del "%#" ) C:\WINDOWS\system32>(Del "C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-22-14.zip" ) C:\WINDOWS\system32>Set "P=PowerShell Compress-Archive -Path" & Set "D=-Update -DestinationPath" C:\WINDOWS\system32>Set "S=Windows.~WS\Sources" & If exist "C:\Users\ztruk\AppData\Local\Temp\Windows.~BT" RD /s /q "C:\Users\ztruk\AppData\Local\Temp\Windows.~BT" C:\WINDOWS\system32>Set "W=Windows.~BT\Sources" & If exist "C:\Users\ztruk\AppData\Local\Temp\Windows.~WS\Sources\Panther" RD /s /q "C:\Users\ztruk\AppData\Local\Temp\Windows.~WS\Sources\Panther" C:\WINDOWS\system32>XCOPY "C:\WINDOWS\Logs\MoSetup" "C:\Users\ztruk\AppData\Local\Temp\Windows\Logs\MoSetup\" /S C:\WINDOWS\Logs\MoSetup\ActionList.xml C:\WINDOWS\Logs\MoSetup\DeviceInventory.xml C:\WINDOWS\Logs\MoSetup\UpdateAgent.log 3 File(s) copied C:\WINDOWS\system32>XCOPY "C:\$Windows.~BT\Sources\Rollback" "C:\Users\ztruk\AppData\Local\Temp\Windows.~BT\Sources\Rollback\" /S File not found - Rollback 0 File(s) copied C:\WINDOWS\system32>XCOPY "C:\$Windows.~BT\Sources\Panther" "C:\Users\ztruk\AppData\Local\Temp\Windows.~BT\Sources\Panther\" /S File not found - Panther 0 File(s) copied C:\WINDOWS\system32>XCOPY "C:\Windows\Panther\UnattendGC" "C:\Users\ztruk\AppData\Local\Temp\Windows\Panther\UnattendGC\" /S C:\Windows\Panther\UnattendGC\diagerr.xml C:\Windows\Panther\UnattendGC\diagwrn.xml C:\Windows\Panther\UnattendGC\setupact.log C:\Windows\Panther\UnattendGC\setuperr.log 4 File(s) copied C:\WINDOWS\system32>XCOPY "C:\Windows\Panther\NewOS" "C:\Users\ztruk\AppData\Local\Temp\Windows\Panther\NewOS\" /S File not found - NewOS 0 File(s) copied C:\WINDOWS\system32>Copy "C:\Windows\Panther\setupact.log" "C:\Users\ztruk\AppData\Local\Temp\Windows\Panther\" & (MD C:\Users\ztruk\AppData\Local\Temp\Windows.~WS\Sources\Panther ) 1 file(s) copied. C:\WINDOWS\system32>Copy "C:\Windows\Panther\setuperr.log" "C:\Users\ztruk\AppData\Local\Temp\Windows\Panther\" 1 file(s) copied. C:\WINDOWS\system32>Copy "C:\$Windows.~WS\Sources\Panther\setupact.log" "C:\Users\ztruk\AppData\Local\Temp\Windows.~WS\Sources\Panther\" The system cannot find the path specified. C:\WINDOWS\system32>Copy "C:\$Windows.~WS\Sources\Panther\setuperr.log" "C:\Users\ztruk\AppData\Local\Temp\Windows.~WS\Sources\Panther\" The system cannot find the path specified. C:\WINDOWS\system32>Copy "C:\WINDOWS\setupapi.log" "C:\Users\ztruk\AppData\Local\Temp\Windows\" & (MD C:\Users\ztruk\AppData\Local\Temp\Windows\inf ) The system cannot find the file specified. C:\WINDOWS\system32>Copy "C:\WINDOWS\inf\setupapi.dev.log" "C:\Users\ztruk\AppData\Local\Temp\Windows\inf\" 1 file(s) copied. C:\WINDOWS\system32>If exist C:\Users\ztruk\AppData\Local\Temp\Windows.~WS (PowerShell Compress-Archive -Path C:\Users\ztruk\AppData\Local\Temp\Windows.~WS -Update -DestinationPath C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-24-07 ) && (RD /s /q C:\Users\ztruk\AppData\Local\Temp\Windows.~WS ) C:\WINDOWS\system32>If exist C:\Users\ztruk\AppData\Local\Temp\Windows.~BT (PowerShell Compress-Archive -Path C:\Users\ztruk\AppData\Local\Temp\Windows.~BT -Update -DestinationPath C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-24-07 ) && (RD /s /q C:\Users\ztruk\AppData\Local\Temp\Windows.~BT ) C:\WINDOWS\system32>If exist C:\Users\ztruk\AppData\Local\Temp\Windows (PowerShell Compress-Archive -Path C:\Users\ztruk\AppData\Local\Temp\Windows -Update -DestinationPath C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-24-07 ) && (RD /s /q C:\Users\ztruk\AppData\Local\Temp\Windows ) C:\WINDOWS\system32>Del "C:\Users\ztruk\AppData\Local\Temp\(+).vbs" & Set "CMD=C:\Users\ztruk\AppData\Local\Temp\CMD.cmd" & Set "#=Echo Echo" Could Not Find C:\Users\ztruk\AppData\Local\Temp\(+).vbs C:\WINDOWS\system32>( Echo @echo off&Title Operations completed successfully.&mode con cols=89 lines=14&color 17 Echo Echo. Echo Echo ####################################################################################### Echo Echo # # Echo Echo # Upgrade_failure_info.bat # Echo Echo # # Echo Echo # The log files have been put into the following ZIP file: # Echo Echo # # Echo Echo C:\Users\ztruk\AppData\Local\Temp\Upgrade_failure_logs_2020-11-02_at_13-24-07.zip Echo Echo # # Echo Echo # Please upload the file as an attachment to your post on TenForums. # Echo Echo # Press any key to close this window. # Echo Echo # # Echo Echo ####################################################################################### Echo Pause >nul & Exit ) 1>"C:\Users\ztruk\AppData\Local\Temp\CMD.cmd" & Timeout 1 /nobreak 1>Nul & Start "" "C:\Users\ztruk\AppData\Local\Temp\CMD.cmd" & Pause Press any key to continue . . .
In this link:
Two BSODs within the past week
Tuneup.bat results appeared normal but was followed with:
Code:Environment variable 笳・Echo Echo not defined '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '#' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. The system cannot find the path specified. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・' is not recognized as an internal or external command, operable program or batch file. '笳・.' is not recognized as an internal or external command, operable program or batch file.
That's the code at the end of the batch file to display the info menu:
I suspect a language problem.Code:@Echo off Set "CMD=%Temp%\CMD.cmd" & Set "●=Echo Echo" (Echo @echo off^&Title Operations completed successfully.^&mode con cols=90 lines=32^&color 17 %●% ################################################################################### %●% # # %●% # Copy the results from the Command Prompt or Powershell window and paste # %●% # them into a post on TenForums: # %●% # # %●% # Go to your thread in the BSOD section, start a new post, and paste the text # %●% # you copied into your post ^(press Ctrl + V or right-click and select [Paste]^). # %●% # # %●% # Select the text you just pasted into your post. Then, on the editor toolbar, # %●% # click on the hashtag icon [#] to wrap tags around the selected # %●% # text. The data will appear in a code box, properly formatted and easy to read. # %●% # # %●% # Alternatively, without selecting anything, put tags at the # %●% # beginning and the end of the data, which will look like what they do in a # %●% # Command Prompt window, properly formatted. # %●% # # %●% # Before you post, click on the [Go Advanced] button at the bottom on the right # %●% # to see what it looks like and, if you have made any additional changes, click # %●% # on the [Preview Post] button, so that you can see what it looks like before # %●% # you actually post it. Click on the [Submit Reply] button as long as you are # %●% # satisfied with it. # %●% # # %●% # Batch files for use in BSOD debugging # %●% # Go to post #1. Scroll down to [Part Two] and see step [5] # %●% # # %●% # Press [V] to visit the above web page for detailed directions. # %●% # Press [C] to close this window. # %●% # # %●% ################################################################################### %●%.&%●%.&Echo CHOICE /C "VC" /M "Your choice?:" ^>nul 2^>^&1 Echo If %%errorlevel%%==1 ^(Start "" "https://www.tenforums.com/bsod-crashes-debugging/162488-batch-files-use-bsod-debugging.html"^) Echo Exit)> "%CMD%" & Timeout 1 /nobreak>Nul & Start "" "%CMD%" & pause