Thread: a space in a program path

  1. #1
    Registered User eam's Avatar
    Join Date
    Oct 2003
    Posts
    53

    a space in a program path

    I'm trying to make a program open some other programs so when i want to use them i can just click that one. One of these is C:\Program files\mozilla.org\Mozilla\mozilla.exe.

    I thought system("C:\\Program files\\mozilla.org\\Mozilla\\mozilla.exe");
    would work, but it tries opening c:\program. How do I get it to work correctly?

  2. #2
    Registered User eam's Avatar
    Join Date
    Oct 2003
    Posts
    53
    Nevermind, I figured it out.

  3. #3
    Been here, done that.
    Join Date
    May 2003
    Posts
    1,164

    Re: a space in a program path

    Originally posted by eam
    I'm trying to make a program open some other programs so when i want to use them i can just click that one. One of these is C:\Program files\mozilla.org\Mozilla\mozilla.exe.

    I thought system("C:\\Program files\\mozilla.org\\Mozilla\\mozilla.exe");
    would work, but it tries opening c:\program. How do I get it to work correctly?
    D**n M$ and it's friggin' spaces.... The least they could have done is think through how to implement the dang things...
    Definition: Politics -- Latin, from
    poly meaning many and
    tics meaning blood sucking parasites
    -- Tom Smothers

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ceasar Shift program
    By trevordunstan in forum C Programming
    Replies: 11
    Last Post: 09-11-2008, 09:40 PM
  2. Help: Program to calc space and money for apartments
    By MightyM991 in forum C Programming
    Replies: 4
    Last Post: 09-22-2005, 09:11 AM
  3. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  4. simple frontend program problem
    By gandalf_bar in forum Linux Programming
    Replies: 16
    Last Post: 04-22-2004, 06:33 AM
  5. DOS program path
    By CodeMonkey in forum C++ Programming
    Replies: 5
    Last Post: 10-02-2002, 07:56 PM