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

Author Topic: A command line of a program and load a xml  (Read 2813 times)

0 Members and 1 Guest are viewing this topic.

Esgrimidor

    Topic Starter


    Hopeful

    Thanked: 1
    A command line of a program and load a xml
    « on: May 03, 2009, 02:33:22 PM »
    This is the line :

    start "" "Y:\PORTABLES\Personaliza pc\Shoot\shoot.exe HowToTuts.com_Profile.xml"

    I have tried and received error.

    the program is shoot and need to load a xml . This xml is in the same folder that the executable : shoot.exe

    Thanks
    Excuse my language. I'm from Canary Islands
    No dejes que tu felicidad dependa de lo que no depende de tí.

    Helpmeh



      Guru

    • Roar.
    • Thanked: 123
      • Yes
      • Yes
    • Computer: Specs
    • Experience: Familiar
    • OS: Windows 8
    Re: A command line of a program and load a xml
    « Reply #1 on: May 03, 2009, 02:39:47 PM »
    This is the line :

    start "" "Y:\PORTABLES\Personaliza pc\Shoot\shoot.exe HowToTuts.com_Profile.xml"

    I have tried and received error.

    the program is shoot and need to load a xml . This xml is in the same folder that the executable : shoot.exe

    Thanks
    Excuse my language. I'm from Canary Islands

    Try moving the xml file to a different folder...
    Where's MagicSpeed?
    Quote from: 'matt'
    He's playing a game called IRL. Great graphics, *censored* gameplay.

    Freerefill



      Rookie

      Thanked: 2
      Re: A command line of a program and load a xml
      « Reply #2 on: May 03, 2009, 02:42:19 PM »
      Using the "start" command generally works like this:

      start "program" "file to load with program"

      Say, for example, you wanted to start "Firefox.exe" (a web browser) and wanted to go to the web page "www.computerhope.com"

      Your batch file would look something like this:

      @echo off
      start "C:\Program Files\Mozilla Firefox\firefox.exe" "www.computerhope.com"

      Notice that the executable and the address are in separate quotes. Also, keep in mind that I used a web page in this example, but you could replace the web page with a text file, or any other file that you could open, and you could replace the executable with anything.

      Another example, suppose you wanted to play a certain song in Winamp:

      @echo off
      start "C:\Program Files\Winamp\winamp.exe" "C:\Daft Punk - Technologic.mp3"

      Hope that answers your question ^^
      There are two things in this world you should never worry about: that which you can change, and that which you cannot change.

      Helpmeh



        Guru

      • Roar.
      • Thanked: 123
        • Yes
        • Yes
      • Computer: Specs
      • Experience: Familiar
      • OS: Windows 8
      Re: A command line of a program and load a xml
      « Reply #3 on: May 03, 2009, 02:45:18 PM »
      I see the problem now!!!


      start "" "Y:\PORTABLES\Personaliza pc\Shoot\shoot.exe HowToTuts.com_Profile.xml"

      This is what you should try...


      start "Y:\PORTABLES\Personaliza pc\Shoot\shoot.exe" "HowToTuts.com_Profile.xml"
      Where's MagicSpeed?
      Quote from: 'matt'
      He's playing a game called IRL. Great graphics, *censored* gameplay.

      Esgrimidor

        Topic Starter


        Hopeful

        Thanked: 1
        Re: A command line of a program and load a xml
        « Reply #4 on: May 03, 2009, 06:45:42 PM »
        I try and comment inmediately
        No dejes que tu felicidad dependa de lo que no depende de tí.

        Esgrimidor

          Topic Starter


          Hopeful

          Thanked: 1
          Re: A command line of a program and load a xml
          « Reply #5 on: May 03, 2009, 06:49:46 PM »
          I obtain not found with

          start "" "Y:\PORTABLES\Personaliza pc\Shoot\shoot.exe" "HowToTuts.com_Profile.xml"



          [attachment deleted by admin]
          No dejes que tu felicidad dependa de lo que no depende de tí.

          Esgrimidor

            Topic Starter


            Hopeful

            Thanked: 1
            Re: A command line of a program and load a xml
            « Reply #6 on: May 03, 2009, 06:52:05 PM »
            I try this with good result



            [attachment deleted by admin]
            No dejes que tu felicidad dependa de lo que no depende de tí.

            Freerefill



              Rookie

              Thanked: 2
              Re: A command line of a program and load a xml
              « Reply #7 on: May 03, 2009, 06:52:24 PM »
              Try putting in the full path for the file you're trying to open.
              There are two things in this world you should never worry about: that which you can change, and that which you cannot change.

              Esgrimidor

                Topic Starter


                Hopeful

                Thanked: 1
                Re: A command line of a program and load a xml
                « Reply #8 on: May 03, 2009, 06:53:39 PM »
                I will try now.

                the full path of the second file is the same of the first

                No dejes que tu felicidad dependa de lo que no depende de tí.

                Esgrimidor

                  Topic Starter


                  Hopeful

                  Thanked: 1
                  Re: A command line of a program and load a xml
                  « Reply #9 on: May 03, 2009, 06:56:09 PM »
                  All okey



                  [attachment deleted by admin]
                  No dejes que tu felicidad dependa de lo que no depende de tí.