play sound1.wav from folder in startupup path
Do you need something made? then ask in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
4 posts
Page 1 of 1
well title says it all
this is the location it is in the startup folder
assets\sound1.wav
how can i play it
ive got this
this is the location it is in the startup folder
assets\sound1.wav
how can i play it
ive got this
Code: Select all
also when i put in the full location
My.Computer.Audio.Play(Application.StartupPath & "assets\sound1.wav")
Code: Select all
it works fineC:\Users\Zachary\Desktop\PROJECTNAMEREMOVED\PROJECTNAMEREMOVED\PROJECTNAMEREMOVED\bin\Debug\assets\sound1.wav
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

also instead of using & you could use +, well either way works.
------------------------------------------------------------------------------
Proprogrammer, not just a Programmer.
Proprogrammer, not just a Programmer.
Hello zachman
You forgot a "\" backslash:
You forgot a "\" backslash:
Code: Select all
My.Computer.Audio.Play(Application.StartupPath & "\assets\sound1.wav")
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
ah thank you codenstuff
Sir

Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that 

4 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023