[SOLVED] Broken "VoiceAccess" workaround

Windows specific forum
Randy Walker
Addict
Addict
Posts: 1276
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

[SOLVED] Broken "VoiceAccess" workaround

Post by Randy Walker »

[EDIT] 02/17/26 I found a solution and documented step-by-step instructions to correct the problem(s) on the elevenforum if anybody wants the proper woring soluytion. find it there. Just sesarh for voice access entry by RandxyWFL.

No idea how but my voiceAccess just stopped opening up no matter how I tied to launch it. So I wrote and compiled the commented code you see below with admin enabled and it worked. I passed it by ChatGPT and you see the results below:

Code: Select all

; The following 2 lines worked after I used "everything to locare a working exe path.
; Exec$ = "C:\Windows\WinSxS\amd64_microsoft-windows-voiceaccessstub_31bf3856ad364e35_10.0.26100.1_none_73d29118c12ea21b\VoiceAccess.exe"
; RunProgram(exec$,"","")
; The following is a revision of my code above provided by ChatGPT that is allegedly "cumulative update" proof which mine is not:
EnableExplicit

Define winSxS$ = "C:\Windows\WinSxS\"
Define pattern$ = "amd64_microsoft-windows-voiceaccessstub_*"
Define bestDir$
Define bestExe$
Define dir$

; Enumerate matching directories
If ExamineDirectory(0, winSxS$, pattern$)

  While NextDirectoryEntry(0)
    If DirectoryEntryType(0) = #PB_DirectoryEntry_Directory
      dir$ = DirectoryEntryName(0)

      ; Pick the highest version lexicographically
      If dir$ > bestDir$
        bestDir$ = dir$
      EndIf
    EndIf
  Wend

  FinishDirectory(0)
EndIf

If bestDir$ = ""
  MessageRequester("Error", "Voice Access stub not found.")
  End
EndIf

bestExe$ = winSxS$ + bestDir$ + "\VoiceAccess.exe"

If FileSize(bestExe$) <= 0
  MessageRequester("Error", "VoiceAccess.exe not found in stub.")
  End
EndIf

; Launch Voice Access
RunProgram(bestExe$, "", "")

MUST BE compiled with admin option enabled!!!
Last edited by Randy Walker on Fri Feb 27, 2026 9:10 am, edited 1 time in total.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist. :mrgreen:
User avatar
HeX0R
Addict
Addict
Posts: 1258
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Broken "VoiceAccess" workaround

Post by HeX0R »

Isn't there always a copy of the latest VoiceAccess.exe in C:\Windows\System32?
A simple

Code: Select all

RunProgram("C:\Windows\System32\VoiceAccess.exe", "", "")
does not work for you?
Randy Walker
Addict
Addict
Posts: 1276
Joined: Sun Jul 25, 2004 4:21 pm
Location: USoA
Contact:

Re: Broken "VoiceAccess" workaround

Post by Randy Walker »

HeX0R wrote: Thu Jan 22, 2026 12:57 pm Isn't there always a copy of the latest VoiceAccess.exe in C:\Windows\System32?
A simple

Code: Select all

RunProgram("C:\Windows\System32\VoiceAccess.exe", "", "")
does not work for you?
No does not open it. It does run it in the background somewhere I cannot see it except in the task manager where I have to go to kill it.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Nothing is faster, more stable, or easier to maintain than code that doesn’t exist. :mrgreen:
Post Reply