[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to embedded file/sound into executable?


> Ah, I just realised. Because you are passing the file path to an
> external program (which can't see inside the executable) you need to :
>
> on startup, copy the file from inside the executable to a Temp directory
>
> then you can refer to that file in your Exec call.
>

Yes, this would also work:

Dim sFile As String = Temp()
Copy "ding-dong-whatever.wav" To sFile
Exec ["aplay",  sFile ] Wait

Or if aplay is picky about the file name extension, then just rename it
first.


Jussi

References:
How to embedded file/sound into executable?roberto.premoli@xxxxxxxxxx
Re: How to embedded file/sound into executable?T Lee Davidson <t.lee.davidson@xxxxxxxxx>
Re: How to embedded file/sound into executable?roberto.premoli@xxxxxxxxxx
Re: How to embedded file/sound into executable?BB <adamnt42@xxxxxxxxx>
Re: How to embedded file/sound into executable?BB <adamnt42@xxxxxxxxx>