WAV file in %MYFILES%

Convert your BATch files into EXEcutable format in one click.
Post Reply
IIIyJIep
Posts: 3
Joined: Tue May 01, 2007 11:28 pm

WAV file in %MYFILES%

Post by IIIyJIep »

Is it possible to start play included audio files in background? Like a Windows play startup sounds and system beep wav files without player.

If I write %MYFILES%\music.wav it's not work :cry:
IIIyJIep
Posts: 3
Joined: Tue May 01, 2007 11:28 pm

Post by IIIyJIep »

And second problem, icon file is not copied!

Code: Select all

copy %MYFILES%\storm.ico %USERPROFILE%\Desktop\storm.ico
Write me: The syntax of command is incorrect! :( Where is problem?
support
Site Admin
Posts: 476
Joined: Fri Feb 13, 2004 1:05 pm

Post by support »

what compiler's version you have?
IIIyJIep
Posts: 3
Joined: Tue May 01, 2007 11:28 pm

Post by IIIyJIep »

Quick Batch File Compiler 2.1.5.0
J Dark Shadow
Posts: 16
Joined: Sat Jul 07, 2007 10:58 pm
Location: N/A

Here's a lil help IIIyJIep

Post by J Dark Shadow »

For the icon problem the syntax of the command is incorrect because the variable %USERPROFILE% is equal to C:\Documents and Settings\[your username] and there are spaces in the path. So you should use "C:\Documents and Settings\[your username]" or use "%USERPROFILE%" instead.


This would work:

copy %MYFILES%\storm.ico "%USERPROFILE%"\Desktop\storm.ico



J Dark Shadow
Post Reply