Windows 10: I have an error in line 31 of Run.vbs .

Discus and support I have an error in line 31 of Run.vbs . in Windows 10 Gaming to solve the problem; It is saying "Insufficient system resources exist to complete the requested service" with error code: 800705AA. This prompt shows up every time I start... Discussion in 'Windows 10 Gaming' started by Nitigya Chandel, Mar 3, 2023.

  1. I have an error in line 31 of Run.vbs .


    It is saying "Insufficient system resources exist to complete the requested service" with error code: 800705AA. This prompt shows up every time I start my windows 11 laptop. I have tried to run 'Run.vbs' manually by going to the folder specified in the prompt but than again same thing happens.I have Ryzen 5 3500u cpu with integrated graphics and 20Gb of ram.

    :)
     
    Nitigya Chandel, Mar 3, 2023
    #1

  2. VBS Msgbox

    Denis,

    • I was too lazy to compute the size programmatically. And, it the 2005 version the message box always came up hidden, so I always used 0 for the top. It's also part of my OCD to be able to control everything.
    • I personally don't need it to timeout. I used this in vbs files to ask to continue to the next step, skip the next step or cancel the vbs. BTW, I added the code back in but keep it assign it to 0.
    • Sound was calling Windows Media Player: WshShell.Run "C:\Users\donast\desktop\sndrec32.lnk",7,false the lnk is a shortcut on my old desktop that had: "C:\Program Files (x86)\Windows Media Player\wmplayer.exe"
      "C:\Users\Public\Music\Wavefiles\Twilight.wav"
    • Yes. The value is the number of the button in the order specified when calling it.
    • Never really thought about it as all my VBS/VBA code is relatively simple and I add comments in the file as necessary to remind me what is going on. I don't usually have anyone to share my code.
    FYI I use a VBS to call it. Here's a line from a test vbs I use to run your version:

    choice=Wshshell.run("custommsgbox.vbs " & wscript.scriptname & " ""CopyFiles.vbs done. Continue with UnArchVista.vbs?"" ""White"" ""Black"" 40 ""Yes"" ""No"" ""Cancel""",1,true)

    Copy it to a text editor to see all the spaces, etc. Took me a while back the to figure it out.

    Don
     
    DRARetired, Mar 3, 2023
    #2
  3. error code 31

    Hi Roderick,

    To resolve the error code that you encountered, we recommend that you check this support page article:
    Error codes in Device Manager in Windows. Please refer to
    Code 31: "This device is not working properly" section and follow the suggested troubleshooting steps.

    Feel free to post back if you need more help.
     
    Jennifer Cha, Mar 3, 2023
    #3
  4. Tryx3 Win User

    I have an error in line 31 of Run.vbs .

    VBS Msgbox

    Don,

    I copied the code into a vbs file - [Superceded] [if your security prevents it from being downloaded then use this one [Superceded] and just take off the .txt at the end of its name]

    I think I am using the syntax correctly now. I can control the number of buttons & their labels together with the title and message and the dialog width.

    MyMsgBox .vbs TestMsg TestTitle 200 "Yes" "No" "Whatever" "Another"

    It is certainly what I was looking for - an easily customisable msgbox tool that I can call from batch files and vbs files.

    Has there possibly been some accidental editing of this file [during fault-finding possibly]? Do you have a copy from before you started fault-finding?

    If line 24 [if oArgs.count > 3 then nbttns=oArgs.count-3] is split into two

    if oArgs.count > 3 then

    nbttns=oArgs.count-3

    the procedure runs to completion but

    • The dialog is only shown onscreen for a moment
    • The key press result is not processed [the variable a remains as 0].
    I have played around in the lines around a=oIE.document.parentWindow.return quite a bit and I noticed

    • The first line oIE.document.parentWindow.return causes an error [hence the need for the preceding
      On Error Resume Next] I do not think it has the property return.
    • I think the second line oIE.document.parentWindow.return is never run because of the same fault as the first one and so
      a is never allocated a value.
    • The do loops and If statements in this section look strange. The Ifs are never completed.
    • The two remarked out lines 'wscript.echo "GetElementById(""b0"").focus"
      and '.GetElementById("b0").focus are strange. Have they been changed during fault-finding?
    • There are several wscript.echo lines. I assume you have been inserting these as part of fault-finding.

    What was the latest version of IE that this script worked with? Before IE7 or after? I have a vague memory that properties such as the
    ReadyState used for the dialog changed with IE7.

    I think I will have to turn to Tom Lavedas's latest version and start studying that. A shame that your ready-made solution could not obtain that
    a value because it would otherwise have allowed me to just get on with using the tool instead of having to study the subject properly.

    Denis
     
    Tryx3, Mar 3, 2023
    #4
Thema:

I have an error in line 31 of Run.vbs .

Loading...
  1. I have an error in line 31 of Run.vbs . - Similar Threads - error line Run

  2. run vbs is missing how do i fix it?

    in Windows 10 Gaming
    run vbs is missing how do i fix it?: Split from this thread. https://drive.google.com/drive/folders/1cWMXGcMSoNqcKLc3ViWhR0sUd15L9Wa2?usp=drive_linkPLease find Frst list and Addition list. https://answers.microsoft.com/en-us/windows/forum/all/run-vbs-is-missing-how-do-i-fix-it/b7c44919-fe91-41e2-a61d-1f3d25c9c9f2
  3. run vbs is missing how do i fix it?

    in Windows 10 Software and Apps
    run vbs is missing how do i fix it?: Split from this thread. https://drive.google.com/drive/folders/1cWMXGcMSoNqcKLc3ViWhR0sUd15L9Wa2?usp=drive_linkPLease find Frst list and Addition list. https://answers.microsoft.com/en-us/windows/forum/all/run-vbs-is-missing-how-do-i-fix-it/b7c44919-fe91-41e2-a61d-1f3d25c9c9f2
  4. run vbs is missing how do i fix it?

    in Windows 10 BSOD Crashes and Debugging
    run vbs is missing how do i fix it?: My run vbs file is missing and its always having a pop up when i start my laptop and i were also unable to reseet my pc and the windows security center cant be turned on or its just shows all black and shows nothing and for some reasons i cannot send the screenshots so i will...
  5. run vbs is missing how do i fix it?

    in Windows 10 Gaming
    run vbs is missing how do i fix it?: My run vbs file is missing and its always having a pop up when i start my laptop and i were also unable to reseet my pc and the windows security center cant be turned on or its just shows all black and shows nothing and for some reasons i cannot send the screenshots so i will...
  6. run vbs is missing how do i fix it?

    in Windows 10 Software and Apps
    run vbs is missing how do i fix it?: My run vbs file is missing and its always having a pop up when i start my laptop and i were also unable to reseet my pc and the windows security center cant be turned on or its just shows all black and shows nothing and for some reasons i cannot send the screenshots so i will...
  7. I have an error in line 31 of Run.vbs .

    in Windows 10 Software and Apps
    I have an error in line 31 of Run.vbs .: It is saying "Insufficient system resources exist to complete the requested service" with error code: 800705AA. This prompt shows up every time I start my windows 11 laptop. I have tried to run 'Run.vbs' manually by going to the folder specified in the prompt but than again...
  8. Im having error code 31.

    in Windows 10 Drivers and Hardware
    Im having error code 31.: Microsoft Basic Display Adapter: This device is not working properly because Windows cannot load the drivers required for this device. Code 31 The driver trying to start is not the same as the driver for the POSTed display adapter. Please help....
  9. Vbs Error

    in Windows 10 Network and Sharing
    Vbs Error: I am getting an error "Microsoft VBScript runtime error '800a000d'" when trying to access a link on a trusted website https://answers.microsoft.com/en-us/windows/forum/all/vbs-error/6a6b54ea-f2c5-4106-9635-8b9d1a617f1f
  10. 32.vbs error

    in Windows 10 Support
    32.vbs error: My laptop shows this error everytime I turn it on "Windows cannot find '32.vbs'. Make sure you typed the name correctly, and then try again." I have Windows 10. Help! 88832