Thread: The System(const char); function

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    4

    Angry The System(const char); function

    Hi there all you great programmers. I have a serious problem.

    When I use:
    system("md c:\\bob");

    or:
    system("copy *.* c:\\bob");

    It works great when my program is executed from the hard drive.
    But, when I burn the exe along with everything else on CD and run it from the CD, nothing works. (And no, it does not try to create a directory on the cd itself. It is like the md or copy commands don't even exist.)

    So again, it would create a directory on the hard drive if executed from the hard drive. But when I run from CD, it will not create the directory in c:\

    If anyone can help. It would be great. Thank you

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    I don't see why it wouldn't work but try this. Make a .bat file with the MD and Copy command in there. Copy it to the CD and run it from there. If the bat file works then there really is no reason for a C program not to work.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    4

    Wink Re: The System(const char); function

    Well, thanks for the tip. But it's very messed up why it doesn't work. It is an installation program for my game. And, my deadline is comming up so I decided to re-create it in Visual Basic.

    Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Replies: 16
    Last Post: 10-29-2006, 05:04 AM
  4. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  5. Replies: 3
    Last Post: 03-04-2005, 02:46 PM