Jump to content

Recommended Posts

Posted

hi friends :hello:

i have a little question about batch file for winamp.

i want to play some music at RunOnceExe stage. in order to do this, i am using the below batch script.

=============================

@echo on

title winamp

color 0b

MD "%systemdrive%\MyMusic"

MD "%systemdrive%\Program Files\TempAmp"

xcopy /y "%cdrom%\MyMusic\*.*" "%systemdrive%\MyMusic"

xcopy /y "%cdrom%\Winamp\*.*" "%systemdrive%\Program Files\TempAmp" /s

"%systemdrive%\Program Files\TempAmp\winamp.exe" "%systemdrive%\MyMusic\Dursun Zaman.mp3"

%~n0.cmd >> %systemdrive%\%~n0.txt & EXIT

=============================

it begins as expected that is winamp starts to play my music but it doesnt quit from commandline window , it hangs and doesnt go on to next installation except when closing manuelly command window.

can you correct it please or give me a common knowledge to prevent such things

thanks in advance. :)


Posted

Try using the Start command. If you do not use the Start command, then window will remain until the executed process finishes.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...