gunsmokingman Posted April 3, 2005 Share Posted April 3, 2005 (edited) I have a few questions on this script. First, this is what happens If I run GsmUaPlayMusicV2.exe. I have to answer the questions you posted screen shots above, then it copies two files to the desktop (UaMusic.CMD and cmdlines.txt) and then the music I have selected starts playing and the player is hidden from view. This is great, however I don't want to have to answer the questions, I would just like to play the music with the player hidden. How can you do this?If I just run UaMusic.CMD (which I plan to do in Runonce.CMD), It will play the music, but the player isn't hidden. So I'm guessing you have something in your VBS script that tells the player to run hidden. Is this correct? If so, can this be added to UaMusic.CMD?Any help would be appreciated.Thanks<{POST_SNAPBACK}>The Screen Shots Are For The First Script Or VersionUse The Second Version It Requires No TypingThe Vbs Tells It to play that wayI Have The Cmd That Way so when it run in A Ua Install You Could Close It If It was CausingAny Problems.Can be used this in T-39 (Detached Program) with another command lines in UaMusic.cmd for integrating and a sound driver before (for example) or disabling some components ? (offcourse including and devcon)Well, something like this :QUOTEcmdow @ /HIDECHO OFFdevcon disable ACPI\PNP0401devcon disable ACPI\PNP0700devcon [-r]update C:\OEM\WDM\wdma_emu.inf "PCI\VEN_1102&DEV_0004&CC_040100"devcon [-r] update C:\OEM\WDM\ctljystk.inf "PCI\VEN_1102&DEV_7002&SUBSYS_00201102"devcon [-r] update C:\OEM\WDM\ctgame2k.inf "PCI\VEN_1102&DEV_7003&SUBSYS_00401102"echo.CLS && mode 55,3 && color 3fTitle Gsm Play MusicEcho.echo Playing User Selected Musicstart /wait mplayer2.exe C:\music\list.m3uping -n 2 127.0.0.1>nulexitIf, it is something wrong, can someone lighting my way ? Thank You !I dont know about this at the 39 min mark.I have never had any success running anything from there. Edited April 3, 2005 by gunsmokingman Link to comment Share on other sites More sharing options...
SaintLaur Posted April 3, 2005 Share Posted April 3, 2005 Ohhh, man...! Well, I'll try later this ... at t-39...I need some luck, maybe . Link to comment Share on other sites More sharing options...
gunsmokingman Posted April 4, 2005 Share Posted April 4, 2005 This In My Test Will Play Either WMP10 Or Mplayer2 HiddenJust Edit This Line In The Script ts.WriteLine "echo Playing User Selected Music" ts.WriteLine "start mplayer2.exe " & (Chr(34) & ObjFSO.FileName & Chr(34)) ''''''PING IS USED TO PAUSE THE SCRIPT IT LIKE SLEEP.EXE ts.WriteLine "ping -n 2 127.0.0.1>nul"Blue Is The New Code LineIt Set To Run WMP10Just Replace The Red With A Blue LineRed Is The Old Line Of Code ' TheseMake The Code Line Inactive. ts.WriteLine "echo Playing User Selected Music" 'ts.WriteLine "start mplayer2.exe " & (Chr(34) & ObjFSO.FileName & Chr(34)) 'ts.WriteLine "start /min mplayer2.exe " & (Chr(34) & ObjFSO.FileName & Chr(34)) ts.WriteLine "start /min wmplayer.exe " & (Chr(34) & ObjFSO.FileName & Chr(34)) ''''''PING IS USED TO PAUSE THE SCRIPT IT LIKE SLEEP.EXE ts.WriteLine "ping -n 2 127.0.0.1>nul" Link to comment Share on other sites More sharing options...
jacksont123 Posted April 4, 2005 Share Posted April 4, 2005 for some reason, a batch file i created for my music selection does not execute at t-39this is my batch script:cls@echo offTITLE Windows XP SP2 - Unattended Installationmode con cols=76 lines=23 & color f0:MENUECHO Over the next few minutes, the following will be implemented: ECHO.ECHO Automated installations of various Sofware ApplicationsECHO Windows UpdatesECHO Registry TweaksECHO.ECHO The computer will restart automatically once the whole process has finished!ECHO ____________________________________________________________________________ECHO Feel free to entertain yourself by using any of the options below:echo.ECHO M - MusicECHO ____________________________________________________________________________ECHO Other Options:ECHO.ECHO C - Color OptionsECHO * - Close WindowECHO ____________________________________________________________________________echo.SET Choice=SET /P Choice=Type the Letter/Number/Symbol and Press Enter: IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%IF /I '%Choice%'==' ' GOTO IF /I '%Choice%'=='M' GOTO MIF /I '%Choice%'=='*' GOTO *IF /I '%Choice%'=='cmd' GOTO cmdIF /I '%Choice%'=='C' GOTO C: ECHO Entering Nothing is NOT ValidGOTO MENU:Mcls@Echo offmode con cols=50 lines=38 & color f0:MUSICTitle Music Selectionecho Music Selection:echo.echo ! - Play Allecho X - Close open Media Playerecho MC - Color OptionsECHO M - Return to Menuecho * - Close Music Selection Windowecho.echo 1. P.O.D - Introecho 2. Paul Oakenfold - Aeternalecho 3. LFO - Freakecho 4. Omega Men - Sweet Worldecho 5. Moby - Sundayecho 6. Moby - Flowerecho 7. Linkin Park - Sessionecho 8. Linkin Park - Cure For The Itchecho 9. Daft Punk - Da Funkecho 10. Daft Punk - Around The Worldecho 11. TR/TR2.OST - The Wellecho 12. NFS3 - Romulus IIIecho 13. NFS4 - Quantum Singularityecho 14. NFS4 - Paradigm Shifterecho 15. Squeak E. Clean - Hello Tomorrowecho 16. AFI - This Time Imperfectecho 17. Green Day - Holidayecho 18. Collective Soul - Where The River Flowsecho 19. Blink 182 - Adam's Songecho 20. White Stripes - Seven Nation Armyecho 21. Radiohead - Electioneeringecho 22. P.O.D - Youth Of The Nationecho 23. Our Lady Peace - Is Anybody Homeecho 24. Nickelback - How You Remind Meecho 25. Nickelback - Somedayecho 26. Newsboys - Million Piecesecho 27. Newsboys - He Reignsecho 28. Newsboys - Joyecho.SET Choice=SET /P Choice=Type the Letter/Number/Symbol and Press Enter: IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%IF /I '%Choice%'==' ' GOTO IF /I '%Choice%'=='!' GOTO !IF /I '%Choice%'=='X' GOTO XIF /I '%Choice%'=='MC' GOTO MCIF /I '%Choice%'=='M' GOTO MIF /I '%Choice%'=='*' GOTO *IF /I '%Choice%'=='1' GOTO 1IF /I '%Choice%'=='2' GOTO 2IF /I '%Choice%'=='3' GOTO 3IF /I '%Choice%'=='4' GOTO 4IF /I '%Choice%'=='5' GOTO 5IF /I '%Choice%'=='6' GOTO 6IF /I '%Choice%'=='7' GOTO 7IF /I '%Choice%'=='8' GOTO 8IF /I '%Choice%'=='9' GOTO 9IF /I '%Choice%'=='10' GOTO 10IF /I '%Choice%'=='11' GOTO 11IF /I '%Choice%'=='12' GOTO 12IF /I '%Choice%'=='13' GOTO 13IF /I '%Choice%'=='14' GOTO 14IF /I '%Choice%'=='15' GOTO 15IF /I '%Choice%'=='16' GOTO 16IF /I '%Choice%'=='17' GOTO 17IF /I '%Choice%'=='18' GOTO 18IF /I '%Choice%'=='19' GOTO 19IF /I '%Choice%'=='20' GOTO 20IF /I '%Choice%'=='21' GOTO 21IF /I '%Choice%'=='22' GOTO 22IF /I '%Choice%'=='23' GOTO 23IF /I '%Choice%'=='24' GOTO 24IF /I '%Choice%'=='25' GOTO 25IF /I '%Choice%'=='26' GOTO 26IF /I '%Choice%'=='27' GOTO 27IF /I '%Choice%'=='28' GOTO 28: ECHO Entering Nothing is NOT ValidGOTO MUSIC:!start mplayer2.exe Playlist.m3uGOTO MUSIC:XTASKKILL /F /IM MPLAYER2.EXEGOTO MUSIC:Mmode con cols=76 lines=23TITLE Windows XP SP2 - Unattended InstallationGOTO MENU:*Exit:1start mplayer2.exe podintro7it.mp3GOTO MUSIC:2start mplayer2.exe POAeternal.mp3GOTO MUSIC:3start mplayer2.exe LFOF.mp3GOTO MUSIC:4start mplayer2.exe SweetWorld.mp3GOTO MUSIC:5start mplayer2.exe MSUN.mp3GOTO MUSIC:6start mplayer2.exe Flower.mp3GOTO MUSIC:7start mplayer2.exe LPS.mp3GOTO MUSIC:8start mplayer2.exe LPCFTI.mp3GOTO MUSIC:9start mplayer2.exe DPDF.mp3GOTO MUSIC:10start mplayer2.exe DPATW.mp3GOTO MUSIC:11 start mplayer2.exe TheWell.mp3GOTO MUSIC:12start mplayer2.exe NFS3R3.mp3GOTO MUSIC:13start mplayer2.exe NFS4QS.mp3GOTO MUSIC:14start mplayer2.exe NFS4PS.mp3GOTO MUSIC:15start mplayer2.exe SECHT.mp3GOTO MUSIC:16start mplayer2.exe Imperfect.mp3GOTO MUSIC:17start mplayer2.exe Holiday.mp3GOTO MUSIC:18start mplayer2.exe CSWTRF.mp3GOTO MUSIC:19start mplayer2.exe B182AS.mp3GOTO MUSIC:20start mplayer2.exe WSSNA.mp3GOTO MUSIC:21start mplayer2.exe Electioneering.mp3GOTO MUSIC:22 start mplayer2.exe PODYOTN.mp3GOTO MUSIC:23start mplayer2.exe OLPIAH.mp3GOTO MUSIC:24start mplayer2.exe NBMe.mp3GOTO MUSIC:25start mplayer2.exe NBSD.mp3GOTO MUSIC:26start mplayer2.exe MillionPieces.mp3GOTO MUSIC:27start mplayer2.exe NBHR.mp3GOTO MUSIC:28start mplayer2.exe Joy.mp3GOTO MUSIC:*EXIT:MCcls@echo offTITLE Color Selectionmode con cols=50 lines=13ECHO Color Options:ECHO [Backround - Foreground]ECHO.ECHO 1 - White and BlackECHO 2 - Black and GreenECHO 3 - Light Blue and WhiteECHO _________________________________________________ECHO Other Options:ECHO.ECHO M - Return to MusicECHO * - Close WindowECHO _________________________________________________SET Choice=SET /P Choice=Type the Letter/Number/Symbol and Press Enter: IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%IF /I '%Choice%'=='1' GOTO 1IF /I '%Choice%'=='2' GOTO 2IF /I '%Choice%'=='3' GOTO 3IF /I '%Choice%'=='M' GOTO MIF /I '%Choice%'=='*' GOTO *IF /I '%Choice%'=='cmd' GOTO cmd: ECHO Entering Nothing is NOT Valid:1color F0GOTO MC:2COLOR 0AGOTO MC:3COLOR 9FGOTO MC:Mmode con cols=50 lines=38GOTO MUSIC:*EXIT:cmdcmd:Ccls@echo offTITLE Color Selectionmode con cols=50 lines=13ECHO Color Options:ECHO [Backround - Foreground]ECHO.ECHO 1 - White and BlackECHO 2 - Black and GreenECHO 3 - Light Blue and WhiteECHO _________________________________________________ECHO Other Options:ECHO.ECHO M - Return to MenuECHO * - Close WindowECHO _________________________________________________SET Choice=SET /P Choice=Type the Letter/Number/Symbol and Press Enter: IF NOT '%Choice%'=='' SET Choice=%Choice:~0,4%IF /I '%Choice%'=='1' GOTO 1IF /I '%Choice%'=='2' GOTO 2IF /I '%Choice%'=='3' GOTO 3IF /I '%Choice%'=='M' GOTO MIF /I '%Choice%'=='*' GOTO *IF /I '%Choice%'=='cmd' GOTO cmd: ECHO Entering Nothing is NOT Valid:1color F0GOTO C:2COLOR 0AGOTO C:3COLOR 9FGOTO C:Mmode con cols=76 lines=23TITLE Windows XP SP2 - Unattended InstallationGOTO MENU:*EXIT:cmdcmdmy batch script is located here in the unattended cd:this is what i had put in my winnt.sif:[GuiUnattended]DetachedProgram="%systemdrive%\install\music\prepare.cmd" Link to comment Share on other sites More sharing options...
evilvoice Posted April 4, 2005 Share Posted April 4, 2005 deleted Link to comment Share on other sites More sharing options...
jacksont123 Posted April 4, 2005 Share Posted April 4, 2005 ok ill try that. thanks!but shouldn't the cmd load even though mplayer.exe is not in the folder?and shouldnt it already work because mplayer2.exe is already in the system folder.ive read some other posts and it said that detachedprogram wouldnt be able to open cmd filesbut it would be able to open exe filesi ttryed converting the cmd file to exe by using quick batch file compiler and it still didnt work!Help Me! does "DetachedProgram" really disallow cmd files?also could more people help me? Link to comment Share on other sites More sharing options...
evilvoice Posted April 5, 2005 Share Posted April 5, 2005 deleted Link to comment Share on other sites More sharing options...
jacksont123 Posted April 5, 2005 Share Posted April 5, 2005 okayill try thatare there any other suggestions?wow im a junior! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now