Jump to content

Play a mp3 file before WPI starts


Recommended Posts

I have tried a few different things, but i cant get i to work.

I can get WMP 9 to autostart playing the file and Windows media player 2, but somehow my install doesn't seem to be able to find those programs shortly after install of windows.

Then i tried media player ( called mplay32 in win/system32 ) but it wont autostart the mp3 file - it will play it though.

Does any one know have this can be done or know how to autostart a mp3 file in media player ?

Link to comment
Share on other sites


plz tell me what to search on then, cuz i have been trying for a week now and all my searches never seem to give any result.

I have read one thread about playing music during setup, but that one dont really work so...

Link to comment
Share on other sites

Thats was the one thread i was talking about - and it still dont work.

Taken from the web of the program:

QuickView Pro is a 32 bit protected mode program and therefore needs at least a 80386 processor and a VGA card. It will run under DOS 3.0 or better, or in a DOS shell under Windows 95/98/ME and OS/2.

But thx for showing me the search function - could never have found that on my own. :whistle:

Link to comment
Share on other sites

Try This Add This To The cmdlines.txt , I call this PlayMusic.cmd

I Gunsmokingman give all users full permission to do what ever they want with this script.

Here Is The Code For The Cmd Script

echo offclsmode con: cols=55 lines=3color 9fTITLE Play Some Musicecho.echo Play Some Music::start wmplayer.exe::or Thisstart mplayer2.exeping -n 2 127.0.0.1>nulexit
This will run at the cmdlines.txt , It Will, Open either of those 2 .

Edit to your needs.

PlayMusic.cmd

Link to comment
Share on other sites

Sry Gun

As i was saying - the problem seems to be that i cant load either of those - dont ask me why by it dont work in Virtual PC.

I did something similar to start with just added the title behind like this:

start /wait mplayer2.exe WPI.mp3

This will work fine in my normal windows, but not in Virtual PC.

After a made an auto it exe to turn the music of after a certain time and when that closed WPI started.

Link to comment
Share on other sites

Try This In The cmdlines.txt

place the script in the same spot as cmdlines.txt

I Gunsmokingman give all users full permission to do what ever they want with this script.

[COMMANDS]"REGEDIT /S 000.reg"

"REGEDIT /S 020.reg"

"REGEDIT /S 040.reg"

"REGEDIT /S 060.reg"

"REGEDIT /S 080.reg"

"UaKillTime.cmd" < this has my music cmd plus a few more things i do like play solotaire

"Theme.cmd"

"RunOnceEx.cmd"

Also To Test The Cmd just right click than hit open than

hit run next than a security warning say yes to run the cmd or no

to not run. If It Is ran, then it will open Mplayer2 In \Program Files\Windows Media Player

This runs perfect on my machine. Are You Sure It Not A Virtual PC,

Problem.

Link to comment
Share on other sites

Can i run this from [Guirunonce] before i call WPI ?

I dont know if its a virtual pc problem- last time the install finished and i look in the windir/system32, but i couldn't find wmplayer or mplayer2, only mplay32.

Link to comment
Share on other sites

That The Location

\Program Files\Windows Media Player

Just Save That Cmd Than Make A Text File Called

cmdlines.txt save it in the :\XPCD\$OEM$ Directory

[COMMANDS]
"PlayMusic.cmd"

This Will Run At The 13 min mark. You Can also Have It Play

a music list.

Below Are 2 examples Of How To Run This.

start mplayer2.exe H:\AudioFiles\dance.m3u

start H:\AudioFiles\dance.m3u<-On Mine It Open WMP10

[Guirunonce]
I dont Use This method or WPI So
I cant Help There.

Link to comment
Share on other sites

Ok thx for the help.

Status now is that I load a self-mixed song and then a webpage with a countdown before WPI starts.

Haven't cross tested it yet - but wanna know if this problem is related to Virtual PC.

Nice that someone does that instead of just say: do the search !

Link to comment
Share on other sites

There Are 2 Files In Here One To Start The Cmd And The Other The Cmd.

Here A Simple Menu In Cmd That Allow For 3 Music Choices

Play A game Of Solitaire

There a Demo Count Down In It

There A Radio Station That Will Play In WMP10

To Use This In A Ua Add This To A cmdlines.txt

I made This A self Extracting Winrar To Make It Easier To Use, and

to not stop the install process.

I Gunsmokingman give all users full permission to do what ever they want with this script.

[COMMANDS]"MyMusic.exe"
Here Is The StartMusic.cmd

echo offcolor 5fTitle Start MYMUSICMYMUSIC.CMD
RED MEANS USE CARE WHEN EDITING

GREEN EDIT TO YOUR NEEDS

PURPLE ARE THE ACTION IT WILL PERFORM

ORANGE ACTION FOR DEMO PURPOSE TO TEST THIS WITHOUT EDITING

BLUE CLEAN UP PART

EG There 3 Files That Get Deleted At The End. If You Change Any

Of The Scripts Names Remeber To Change The Names In The Script To Match

The Changes

ECHO OFF

CLS

COLOR F2

MODE CON: COLS=55 LINES=9

TITLE MYMUSIC

:MAIN

cls

MODE CON: COLS=55 LINES=9

TITLE MYMUSIC

ECHO.

ECHO C1 COUNTDOWN DEMO 1 ® COUNTDOWN

ECHO M1 FOR MUSIC LIST 1 ® DANCE

ECHO M2 FOR MUSIC LIST 2 ® GSMALLMUSIC

ECHO M2 FOR MUSIC LIST 3 ® ALTROCK

ECHO G1 PLAY A GAME OF ® ® SOLITAIRE

ECHO R1 RADIO STATION ® ® CLUBNETRADIO

ECHO Quit FOR QUIT ®

SET Choice=

SET /P Choice=Type the letter and press Enter:

IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%

IF /I '%Choice%'=='C1' GOTO C1

IF /I '%Choice%'=='M1' GOTO M1

IF /I '%Choice%'=='M2' GOTO M2

IF /I '%Choice%'=='M3' GOTO M3

IF /I '%Choice%'=='G1' GOTO G1

IF /I '%Choice%'=='R1' GOTO R1

IF /I '%Choice%'=='Quit' GOTO QUIT

ECHO "%Choice%" is not valid. Please try again.

GOTO MAIN

:M1

cls

color f7

TITLE PLAYLIST 1

ECHO.

ECHO Press Key to Return

start H:\AudioFiles\dance.m3u

SET /P = PLAY DANCE.m3u

GOTO MAIN

:M2

cls

color 4f

TITLE PLAYLIST 2

ECHO.

start H:\AudioFiles\GsmAllMusic.m3u

ECHO Press Key to Return

SET /P = PLAY GSMALLMUSIC

GOTO MAIN

:M3

CLS

color 2b

TITLE PLAYLIST 3

ECHO.

start H:\AudioFiles\altrock.m3u

ECHO Press Key to Return

SET /P = PLAY ALTROCK

GOTO MAIN

G1:

cls

color b2

TITLE GAMES 1

ECHO.

start SOL.EXE

ECHO Press Key to Return

SET /P = PLAY SOLITAIRE

GOTO MAIN

:C1

echo off

cls

mode con: Cols=55 Lines=5

Color 9f

TITLE COUNTDOWN

> Rest1.vbs Echo Wscript.sleep 875

SET R1=Start /w Rest1.vbs

CLS

ECHO.

Echo .5

%R1%

CLS

ECHO.

Echo ..4

%R1%

CLS

ECHO.

Echo ...3

%R1%

CLS

ECHO.

ECHO ....2

%R1%

CLS

ECHO.

ECHO .....1

%R1%

CLS

COLOR F2

ECHO.

SET /P = CONTINUE

DEL REST1.VBS

GOTO MAIN

:R1

cls

color b2

TITLE GAMES 1

ECHO.

START http://www.clubnetradio.com/listen.php?type=2^&bitrate=high /wmplayer.exe

ECHO Press Key to Return

SET /P = CLUB NET RADIO

GOTO MAIN

:QUIT

cls

ECHO.

TITLE GOODBYE!

> %Systemdrive%\CU1.vbs echo Dim Garbage

>> %Systemdrive%\CU1.vbs echo set Garbage = (CreateObject("Scripting.FileSystemObject"))

>> %Systemdrive%\CU1.vbs echo msgbox "Starting Clean UP?",vbokonly+48,"Clean Up"

>> %Systemdrive%\CU1.vbs echo Garbage.DeleteFile ("\MyMusic.cmd")

>> %Systemdrive%\CU1.vbs echo Garbage.DeleteFile ("\STARTMUSIC.cmd")

>> %Systemdrive%\CU1.vbs echo Garbage.DeleteFile ("\CU1.vbs")

>> %Systemdrive%\CU1.vbs echo wscript.sleep 500

>> %Systemdrive%\CU1.vbs echo Delete=("\MyMusic.cmd")

>> %Systemdrive%\CU1.vbs echo Delete=("\STARTMUSIC.cmd")

>> %Systemdrive%\CU1.vbs echo Delete=("\CU1.vbs")

>> %Systemdrive%\CU1.vbs echo wscript.sleep 500

>> %Systemdrive%\CU1.vbs echo msgbox "Clean UP Completed?",vbokonly+48,"Clean Up Those Files"

start /w %Systemdrive%\CU1.vbs

SET /P = YOU SAID QUIT SO GOODBYE!

EXIT

To Edit This Just Extract the MyMusic.cmd To Any Location

Edit it to what you want.

Next

I use winrar and so because there are 2 cmd in there I just delete

the MyMusic File From The SFX after i have edit the extracted one.

Than

I add The edit one back in.

MyMusic.exe

Link to comment
Share on other sites

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...