Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. cmd /c start

cmd /c start

Scheduled Pinned Locked Moved The Lounge
helpjavatutorialquestion
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jarek G
    wrote on last edited by
    #1

    Hi! Is this stupid or not? I am writing a fileserch program in Java, but I have to use the cmd /c start command if a user want to run a file from my program. Example: cmd /c start notepad.exe will run the notepad. But this wont work cmd /c start c:\My Music\accept.mp3 WHY!! start cant take arguments with space like My Music..! I have to write my own start.exe and send it with my program?? If you have a solution to this problem pleas help..! /Jarek It has recently been discovered that research causes cancer in rats.
    What do you want to patch today?

    D L M 3 Replies Last reply
    0
    • J Jarek G

      Hi! Is this stupid or not? I am writing a fileserch program in Java, but I have to use the cmd /c start command if a user want to run a file from my program. Example: cmd /c start notepad.exe will run the notepad. But this wont work cmd /c start c:\My Music\accept.mp3 WHY!! start cant take arguments with space like My Music..! I have to write my own start.exe and send it with my program?? If you have a solution to this problem pleas help..! /Jarek It has recently been discovered that research causes cancer in rats.
      What do you want to patch today?

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      Jarek Gibek wrote: cmd /c start c:\\My Music\accept.mp3 WHY!! 1. Because there's no player associated with .mp3 extension 2. c:\\My Music\accept.mp3? Is it a typo or really there is a '\' missing or extra on your path?? My latest article: SQL Server DO's and DONT's[^]

      J 1 Reply Last reply
      0
      • D Daniel Turini

        Jarek Gibek wrote: cmd /c start c:\\My Music\accept.mp3 WHY!! 1. Because there's no player associated with .mp3 extension 2. c:\\My Music\accept.mp3? Is it a typo or really there is a '\' missing or extra on your path?? My latest article: SQL Server DO's and DONT's[^]

        J Offline
        J Offline
        Jarek G
        wrote on last edited by
        #3

        No its not that! its the space between My and Music the extra \ is a typo! /Jarek It has recently been discovered that research causes cancer in rats.
        What do you want to patch today?

        D 1 Reply Last reply
        0
        • J Jarek G

          No its not that! its the space between My and Music the extra \ is a typo! /Jarek It has recently been discovered that research causes cancer in rats.
          What do you want to patch today?

          D Offline
          D Offline
          Daniel Turini
          wrote on last edited by
          #4

          I'm so sleepy today that I didn't notice this. This and the fact you posted a programming question in the Lounge. Worst, a Java programming question! :) My latest article: SQL Server DO's and DONT's[^]

          1 Reply Last reply
          0
          • J Jarek G

            Hi! Is this stupid or not? I am writing a fileserch program in Java, but I have to use the cmd /c start command if a user want to run a file from my program. Example: cmd /c start notepad.exe will run the notepad. But this wont work cmd /c start c:\My Music\accept.mp3 WHY!! start cant take arguments with space like My Music..! I have to write my own start.exe and send it with my program?? If you have a solution to this problem pleas help..! /Jarek It has recently been discovered that research causes cancer in rats.
            What do you want to patch today?

            L Offline
            L Offline
            loket
            wrote on last edited by
            #5

            Write the filesearch program in c++ and start it from your java app. /M


            - Don't sweat the petty things, and don't pet the sweaty things.

            J 1 Reply Last reply
            0
            • L loket

              Write the filesearch program in c++ and start it from your java app. /M


              - Don't sweat the petty things, and don't pet the sweaty things.

              J Offline
              J Offline
              Jarek G
              wrote on last edited by
              #6

              I already did that :) But I don't want to lock the program to window! I need to use it on Linux, G4, Unix and windows. Thats why it is made in Java. And java handle recursive programming "easier" than C++, I alway end upp with out of stack memory in C++ :-( /Jarek It has recently been discovered that research causes cancer in rats.
              What do you want to patch today?

              L 1 Reply Last reply
              0
              • J Jarek G

                I already did that :) But I don't want to lock the program to window! I need to use it on Linux, G4, Unix and windows. Thats why it is made in Java. And java handle recursive programming "easier" than C++, I alway end upp with out of stack memory in C++ :-( /Jarek It has recently been discovered that research causes cancer in rats.
                What do you want to patch today?

                L Offline
                L Offline
                loket
                wrote on last edited by
                #7

                Jarek Gibek wrote: But I don't want to lock the program to window! I need to use it on Linux, G4, Unix and windows. Thats why it is made in Java. So you decided to use java which makes the prog unusable on all platforms? ;P /M


                - Don't sweat the petty things, and don't pet the sweaty things.

                J 1 Reply Last reply
                0
                • L loket

                  Jarek Gibek wrote: But I don't want to lock the program to window! I need to use it on Linux, G4, Unix and windows. Thats why it is made in Java. So you decided to use java which makes the prog unusable on all platforms? ;P /M


                  - Don't sweat the petty things, and don't pet the sweaty things.

                  J Offline
                  J Offline
                  Jarek G
                  wrote on last edited by
                  #8

                  Hostile Java situation here :-) /Jarek It has recently been discovered that research causes cancer in rats.
                  What do you want to patch today?

                  1 Reply Last reply
                  0
                  • J Jarek G

                    Hi! Is this stupid or not? I am writing a fileserch program in Java, but I have to use the cmd /c start command if a user want to run a file from my program. Example: cmd /c start notepad.exe will run the notepad. But this wont work cmd /c start c:\My Music\accept.mp3 WHY!! start cant take arguments with space like My Music..! I have to write my own start.exe and send it with my program?? If you have a solution to this problem pleas help..! /Jarek It has recently been discovered that research causes cancer in rats.
                    What do you want to patch today?

                    M Offline
                    M Offline
                    Michael Dunn
                    wrote on last edited by
                    #9

                    You need quotes around the MP3 filename, because it contains spaces. --Mike-- "alyson hannigan is so cute it's crazy" -- Googlism Just released - 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups