Thread: files wind up on the desktop

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    2

    files wind up on the desktop

    Hello,
    I'm new to this post. I am also new to C++.
    I have managed to get the DJGPP compiler up and running , but after I makefile and run , all of the new files are stored on the desktop!
    I found a FAQ about this that said that DJGPP stores all new files in the current directory. I start my sessions by going :
    START>RUN>"rhide hello"
    Is the START/RUN directory the desktop? I was under the impression that C: was my current directory.
    The FAQ said something about going into DOS to switch directories. I know how to do this but which other directory can I use? DJGPP is currently in : C:\DJGPP
    Man this is confusing!
    Any help in this matter would be appreciated.
    Thanks,
    spray 140 aka james

  2. #2
    Registered User
    Join Date
    Dec 2001
    Posts
    421

    Talking

    when you run things from the start->run option in windows, the default current directory is the desktop... you have to give it full paths if you dont want the 'working' directory to be the desktop.

    try typing in the full path to the rhide executable instead:

    start->run->C:\whatever\rhide hello

    or better still ... create a shortcut to it.. and in the shortcut tell it what you want the working directory to be.

    good luck.
    U.
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    2
    Thank You, Thank You, Thank You
    I have been posting this question on various boards now for 3 weeks! This was THE ONLY answer I have recieved thus far, and to top it off, I understand it. So, once again,
    THANKS
    Now I can resume my C++ studies, and maybe even learn to incorporate C++ with my Python programs.
    spray 140 aka james

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    421
    no problem.. glad i could help
    Quidquid latine dictum sit, altum sonatur.
    Whatever is said in Latin sounds profound.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Create Copies of Files
    By Kanshu in forum C++ Programming
    Replies: 13
    Last Post: 05-09-2009, 07:53 AM
  2. Reading .dat files from a folder in current directory...
    By porsche911nfs in forum C++ Programming
    Replies: 7
    Last Post: 04-04-2009, 09:52 PM
  3. *.cpp and *.h files understanding
    By ElastoManiac in forum C++ Programming
    Replies: 4
    Last Post: 06-11-2006, 04:45 AM
  4. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 11:46 AM
  5. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 02:41 PM