Umm he just showed you⊠it sounds like you need to learn then. I dont know what else he can do other than fly over and do it for you⊠doubt he would do that.
.bat files is not SambaPOS related. You should google .bat files and study them. They are VERY Basic and you can understand them in a few minutes if you would google it and read.
But since I feel somewhat good this morning I will give you a simple layout.
Start Notepad.exe
Type powershell -c (New-Object Media.SoundPlayer "D:\SAMPAPOS5\loocadet.wav").Play(); Start-Sleep -s 5; Exit;
Click Save As and name it ilearnedsomethingtoday.bat
Now you have created a .bat file named ilearnedsomethingtoday
Ok thanks for letting us know its not working unfortunately we canât really offer you additional help at this time. To get further assistance you need to explain what is not working, what you have tried, and most importantly share some screenshots so we can find out what you have done wrong. We lack the ability to know these things without you sharing them.
looks like sound.mp3 is not located in c:\ it is located on your desktop. You need to change your .bat file to C:\Users\youruser\Desktop\sound.mp3 or just move it to c:\
Also your .bat file is not located in c:\ it too is located in your desktop.
So either move them to c:\ or change your file path in your action and your .bat file accordingly.
Try making a .wav file perhaps it cant play .mp3. At least test with .wav file. I am fairly sure you would need a MP3 player program for that to work something like WinAmp supports command line I believe.
.
EDIT: Yes WinAmp supports command line:
1. Using the command line interface to control Winamp
Note: New 5.11+ multi user/instance commandline switches can be found below.
The simplest, easiest, least powerful way of controlling Winamp is to
execute winamp.exe yourself. By simply calling winamp.exe with various
command line options, you do a number of things. For example:
C:\path\to\winamp\winamp.exe /ADD C:\mp3\whatever.mp3
(Adds C:\mp3\whatever.mp3 to the playlist of a running Winamp, if Winamp
is running, otherwise it opens Winamp and plays it outright)
C:\path\to\winamp\winamp.exe /NEW
(Creates a new instance of Winamp, even if Winamp is already running)
C:\path\to\winamp\winamp.exe C:\mp3\file.mp3
(Plays the file C:\mp3\file.mp3, regardless of whether or not Winamp is open)
C:\path\to\winamp\winamp.exe /CLASS="myclassname"
(Opens Winamp with a different Window Class name "myclassname")
As you might notice, what you can actually do using the command line
interface is pretty limited. It is really easy to get started with,
though. You can also specify multiple files and or directories on the
command line, such as:
C:\path\to\winamp\winamp.exe /NEW "C:\my mp3s\" "C:\bigplaylist.pls" "C:\download\new song.mp3"
For more advanced Command Line switches you can use a plugin such as WACommand.
Your error is appearing because the Start Process Action cannot find your BAT file. This is because your BAT file is called âNew textdocument.txtâ. You need to rename it to âsound.batâ.
And yes, you need to place the sound file in the same location as the BAT file.