Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: xcopy command line together with wmplayer command line  (Read 6017 times)

0 Members and 1 Guest are viewing this topic.

Ossi

    Topic Starter


    Rookie
    xcopy command line together with wmplayer command line
    « on: September 09, 2008, 12:47:30 AM »
    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? ???

    fireballs



      Apprentice

    • Code:Terminal
    • Thanked: 3
      Re: xcopy command line together with wmplayer command line
      « Reply #1 on: September 09, 2008, 05:04:22 AM »
      HI!
      Try
      Code: [Select]
      start "" "C:\path to file\wmplayer" "C:\filename.wmv" FB
      Next time google it.

      Ossi

        Topic Starter


        Rookie
        Re: xcopy command line together with wmplayer command line
        « Reply #2 on: September 09, 2008, 07:27:52 AM »
        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?

        fireballs



          Apprentice

        • Code:Terminal
        • Thanked: 3
          Re: xcopy command line together with wmplayer command line
          « Reply #3 on: September 09, 2008, 08:07:23 AM »
          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.

          FB
          Next time google it.

          Ossi

            Topic Starter


            Rookie
            Re: xcopy command line together with wmplayer command line
            « Reply #4 on: September 09, 2008, 09:38:02 AM »
            Well, 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 start

            fireballs



              Apprentice

            • Code:Terminal
            • Thanked: 3
              Re: xcopy command line together with wmplayer command line
              « Reply #5 on: September 09, 2008, 09:44:53 AM »
              it 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

              FB
              Next time google it.

              Ossi

                Topic Starter


                Rookie
                Re: xcopy command line together with wmplayer command line
                « Reply #6 on: September 09, 2008, 01:07:06 PM »
                Finally 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 .
                Ossi

                fireballs



                  Apprentice

                • Code:Terminal
                • Thanked: 3
                  Re: xcopy command line together with wmplayer command line
                  « Reply #7 on: September 09, 2008, 01:10:18 PM »
                  Glad it works, come back whenver you want!

                  FB
                  Next time google it.