Thread: ?'s

  1. #1
    Registered User Ajsan's Avatar
    Join Date
    Dec 2003
    Posts
    55

    ?'s

    does any one know of a prog or line(s) of code that can discover its the directory that its in?

    and how do i use commands like copy and paste from inside of a program cuase i would like to copy and paste files from the same directory as the prog in to another folder kind of like an install?

    i'm using MVC++ Pro 6.0 and Vis Studio .net 2K3 windows xp and if its different i would like that copy paste code differentials for 98 and ME.

    thx for all of the help in advance.
    Style is overrated.

    - —â‚˝‚˘‰Î -

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    does any one know of a prog or line(s) of code that can discover its the directory that its in?
    http://faq.cprogramming.com/cgi-bin/...&id=1044780608

  3. #3
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072
    Quote Originally Posted by Ajsan
    does any one know of a prog or line(s) of code that can discover its the directory that its in?.
    Use the argc[0] variable and remove the name of the program.
    It works if the program is started from the Windows GUI.
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. rpg ?'s
    By cerin in forum Game Programming
    Replies: 17
    Last Post: 03-17-2005, 10:52 AM
  2. Few easy console manipulation ?'s
    By RoD in forum C++ Programming
    Replies: 2
    Last Post: 10-08-2002, 03:35 PM
  3. Here are some simple ?'s
    By correlcj in forum C Programming
    Replies: 6
    Last Post: 07-20-2002, 03:35 PM
  4. ?'s in filenames
    By sean in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 06-06-2002, 09:18 PM
  5. Replies: 11
    Last Post: 10-17-2001, 05:06 PM