Back to Blog
Splayer windows 86/3/2023 So I thought since it doesn't play a sound anyway, I could just do it this way. I checked to see if it had been updated to work with Windows 8 and read that it can't be made to work with Windows 8 for the same reason, Microsoft put in commands that just won't let you change it. I did this myself during beta, I used a app called Start Sound Changer, that works really well in Windows 7 and it totally borked my Windows 8 install. I've read that you can't edit the registry key because Windows 8 uses some kind of checker at startup and if it finds anything in this area changed it screws up Windows pretty badly. I hope this works for anyone who's suffered the same frustration I had. You may need to "show Hidden Files and Folders." vbs file into your startup folder, located in %OS%\Users\%YOURUSER%\AppData\Microsoft\Windows\Start Menu\Programs\Startup\. vbs extension (the name is up to you).įrom there, copy and paste the. If the file looks similar to what The Scripting Guy displays (besides the edits I've mentioned), save as All files, and name the document with a. Then switch back to notepad, and use Ctrl V to paste, and the path that was there previously will be replaced by what you pasted. Line 3, Char 31.įor the sound you want to play, simply highlight the preset path from quote-to-quote, switch windows to look for a file, then when you find it, copy the file path using the same method you used to copy smallplayer0.74's path. play /close) otherwise the script will fail, showing you a dialog that says where the error is in the script, e.g. Then highlight the path for sndrec32, and paste the link over it.ĭelete any quotation marks that are not outside the total path, arguments included (e.g. To copy a path, simply use the command on File explorer when the file is highlighted. When you compose the script (using notepad), make sure you replace the sndrec32.exe path with the file location of smallpayer0.74. I suggest smallplayer portable, available from Softpedia via this link: you need to paste it-I cannot link for some reason. There's something you should know-sndrec32.exe is no longer in windows 8 and the new SoundRecorder.exe, located in the system32 folder, is unable to run from there because it's 64-bit and cannot launch from a 32-bit container. This script is located at the following website: please paste this link into your address bar-my ability to link is compromised right now. It's in a hidden folder under your User root called AppData. For those like me who were stumped by this issue (I'm running Windows 8 Build 9200), I propose a simple solution that works fine for me: Create a script and put it in your (not All users/public) Startup folder. How Can I Play a Sound From Within a Script? - Hey, Scripting Guy! Blog - Site Home - TechNet BlogsĪs R Sully said, you can make the sounds in question re-appear, but they do not re-sound. Line 3, Char: 57 Error Expected end of statement. If anyone who understands this stuff can identify what I'm doing wrong I'd appreciate it. I've verified that the sound does play in Small Player, etc. The file is named Hello Michael Brit.wav. My sound is in C:\Window\My Windows Sounds. I have the 64 bit version of Small Player installed at the location shown, C:\Small Player\splayer.exe. I just can't stand to let Microsoft win!!! Writing scripts is not something I do, I quit after. StrCommand = "C:\Small Player\splayer.exe" /play /close "C:\Windows\My Windows Sounds\Hello Michael Brit.wav" Set objShell = CreateObject("Wscript.Shell") StrSoundFile = "C:\My Windows Sounds\Hello Michael Brit.wav" I'll link to the research and the end of this post. I read that this can be done, and I've researched it a bit. I'm trying to write a script to play a sound at Windows 8 startup. Sub title "How to spend a lot of time trying to do something that Microsoft doesn't want you to, for some obscure reason".
0 Comments
Read More
Leave a Reply. |