I'm trying to make a bat file that when launched will open a mediafile and close after x-number milliseconds.
mediaplay [play time] [audio file]
I'm trying to use nircmd's media play command, but it dosen't recognize it. I've tried the following codes in cmd.
C:\Users\Lind>mediaplay 10000 "C:\Users\Lind\Music\1.mp3"
'mediaplay' is not recognized as an internal or external command,
operable program or batch file.
I've also tried this but nothing happend
C:\Users\Lind>nircmd.exe mediaplay 10000 "C:\Users\Lind>Music>1.mp3"
**************************************Update************************************
I found out that I've made a mistake in the mp3 file directory name, now it just says
C:\Users\Lind>nircmd.exe mediaplay 10000 "C:\Users\Lind>Music\1.mp3"
Access is denied.
I've tried using cmd as an adminstrator, but then nothing happens.