|
Answer» A BIG hi to EVERYBODY as this is my first appearance in this forum! I am struggeling with the following problem: I need to copy content from a CD to the HDD several PCs. I am using the following commandsin a batch file: xcopy "." c:\ads/s/e/y C: cd\ads name (of the respective file Now I am trying to get win media player to play that file when loaded to the HDD. The command line I try reads as follows: wmplayer"c:\filename.wmv"/fullscreen When testing the command in "run" it works perfectly. When I write it into the said batch the content is well copied to the HDD but the player does not start. What am I doing wrong that the machine will not read the last command? Can anybody give me a hint? HI! Try Code: [Select] start "" "C:\path to file\wmplayer" "C:\filename.wmv" FB Thanks FB! Unfortunately that does not work . I am sorry but I gave a false wmplayer command line . Corrected it must read: wmplayer"c:\path to file\filename.wmv"/fullscreen Alltogether it should copy a file from a cd to a HDD, overwrite the previous file and then play the file using wmplayer in full screen mode. Additionally there is an autorun info ASSOCIATED reading: autorun open=ads.bat as the batch file is named ads.bat which starts firstly the cd and secondly the whole process when the PC is restarted. As said before up to the player command everything works as supposed but then there is "silence"? Again, any hints?Why doesn't it work? error codes or what?
I don't have windows media player but i use winamp and when i use Code: [Select] start "" "c:\Program Files\Winamp\winamp.exe" "c:\Users\Public\Music\01 Faith.mp3" it opens up winamp and plays faith by George michael.
FBWell, why it does not work I don't know. It gives the error "windows cannot find start"" when I try it in "run". When I incorporate it into the batch file and double click it, it just shows a short flick as before and the player does not startit won't work in run. Start is a DOS command... I'd suggest testing your code in command line (in run type 'cmd') and not in run.
and you seem to quote all of your code without SPACES in it. It needs to be Code: [Select]start "" "C:\... EDIT: Also if you just run the batch file it will exit immediately after giving the error (the flicker your talking about) so to get the error goto your command line and then run the batch file and see what it says
FBFinally it seems to work. I played a bit around and used your (modified) comand line. The code I use is: start "" "c:\Program Files\Windows Media Player\wmplayer.exe" "c\path\file name.wmv"/fullscreen Obviously it works. I will try it with several setups but the batch file will basically stay the same. Thanks a million. Coming back if there are more problems . OssiGlad it works, come back whenver you WANT!
FB
|