Windows 10: Error: invalid Namesapce in BatteryFull.vbs file

Discus and support Error: invalid Namesapce in BatteryFull.vbs file in Windows 10 Software and Apps to solve the problem; Hello,i am trying to get notification in windows 10 laptop when battery is 100% charged so i found the vbs script from microsoft forum by Joan Howard... Discussion in 'Windows 10 Software and Apps' started by Asad A.Mirza, Aug 4, 2022.

  1. Error: invalid Namesapce in BatteryFull.vbs file


    Hello,i am trying to get notification in windows 10 laptop when battery is 100% charged so i found the vbs script from microsoft forum by Joan Howard here is linkGet an alert when my battery reaches 95% Microsoft Docswhen i try to open this vbs file it shows namespace error --------------------------------------------------------------------------------------------------------------------------set oLocator = CreateObject"WbemScripting.SWbemLocator"set oServices = oLocator.ConnectServer".","rootwmi"set oResults = oServices.ExecQuery"select * from batteryfullchargedcapacity"for each oRes

    :)
     
    Asad A.Mirza, Aug 4, 2022
    #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, Aug 4, 2022
    #2
  3. the handle is invalid HELP!


    I'm going through the same thing right now. i tried to go in and come in on safe mode but it still would give me the same error. Now it will take my password, start to log in and bring up my main screen but it blip then goes back to the sign in page where i put my password in it would give that 'invalid handle" message.
     
    mobtonguezilla, Aug 4, 2022
    #3
  4. Flava0ne Win User

    Error: invalid Namesapce in BatteryFull.vbs file

    Invalid Boot.ini File

    Lately, I started getting this "Invalid Boot.ini File, Booting From: C:\Windows\" message everytime when I boot up my system right before it gets to the Windows boot screen. Is there anyway to get rid of this message?
     
    Flava0ne, Aug 4, 2022
    #4
Thema:

Error: invalid Namesapce in BatteryFull.vbs file

Loading...
  1. Error: invalid Namesapce in BatteryFull.vbs file - Similar Threads - Error invalid Namesapce

  2. Random exe and vbs file

    in Windows 10 Network and Sharing
    Random exe and vbs file: I recently found 2 vbs and exe files in my users roaming folder and windows defender marked one of them as a trojan so i deleted both of them but now when i start my pc two pop ups come saying they can't can't the windows script file with the path and file name on eof them is...
  3. Random exe and vbs file

    in Windows 10 Software and Apps
    Random exe and vbs file: I recently found 2 vbs and exe files in my users roaming folder and windows defender marked one of them as a trojan so i deleted both of them but now when i start my pc two pop ups come saying they can't can't the windows script file with the path and file name on eof them is...
  4. VBS script opening error

    in Windows 10 Gaming
    VBS script opening error: Hi guys.A .vbs script in the startup/programs folder that should open on every startup displays the following error and the script fails to run every time.The error message is -' Creates a SR point during the first startup of the day ' Option Explicit Dim SRP, CSRP, objWMI,...
  5. VBS script opening error

    in Windows 10 BSOD Crashes and Debugging
    VBS script opening error: Hi guys.A .vbs script in the startup/programs folder that should open on every startup displays the following error and the script fails to run every time.The error message is -' Creates a SR point during the first startup of the day ' Option Explicit Dim SRP, CSRP, objWMI,...
  6. Error: invalid Namesapce in BatteryFull.vbs file

    in Windows 10 Gaming
    Error: invalid Namesapce in BatteryFull.vbs file: Hello,i am trying to get notification in windows 10 laptop when battery is 100% charged so i found the vbs script from microsoft forum by Joan Howard here is linkGet an alert when my battery reaches 95% Microsoft Docswhen i try to open this vbs file it shows namespace error...
  7. Error in the File C:system33\windows 1,2 .vbs

    in Windows 10 BSOD Crashes and Debugging
    Error in the File C:system33\windows 1,2 .vbs: Whenever I turn on my pc these 2 errors appear. Can anyone pls help me fix these, they appear every time I turn on my pc or turn on the Power supply. [ATTACH] [ATTACH]...
  8. 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
  9. Invalid File error

    in Windows 10 Drivers and Hardware
    Invalid File error: Hello, I am having an issue with attempting to copy a .zip file from an SD card to the computer, the file is 1.28 GB and contains a .exe and some .txt files (Maybe this info help) the file will copy, but attempting to open the file for extraction gives an error stating that...
  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