Thread: file placement programs

  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    3

    file placement programs

    hey, im EXTREMELY new to c programming. i have a skin site. u have to place different files in different folders and i want to create a program that u can run it.. then hit open and open a zip file and hit install and have .mdl files go here and.wav files go there.

    something on the line of that

    like i said i am new to c programing and this is obviously beyond me, but i was wondering if anyone had a source code in wich i could change the dir of the files and change what files move. or some tut on making one of these programs..


    thanks

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    102
    Learn file concepts and do it on your own instead of looking in other codes. It will develop confidence in you.
    Saravanan.T.S.
    Beginner.

  3. #3
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    Looking into the working code of someone else can be very useful to learn about how mechanisms can be implemented. You can use that knowledge to implement your own mechanisms.

    Your problem seems a bit more than just the standard file I/O functions provided by the standard C library. In your problem you need to know how to handle ZIP-files. There are libraries you could use for this:
    http://zziplib.sourceforge.net/zzip-index.html
    http://www.gzip.org/zlib/
    http://www.winimage.com/zLibDll/unzip.html

    Here's some info on handling files in C:
    http://www.strath.ac.uk/IT/Docs/Ccou...ction3_11.html

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    3
    im really new.. like ive only made printf programs... does anyone have a source code?

  5. #5
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    It sounds like you just want a bash script.

    If you give more detials/real example maybe some one can come up with something. Right now it sounds (to me) like you want a bash script or a knock off of a file manger(with a gui to select this kind of stuff and to show the files).

    look at some of these
    system (so you dont have rewrite a os command)
    sprintf (so you can give system something usefull)

    Making folders depends on the os(i cant beileve posix doesnt cover something basic like that), what are you running?

  6. #6
    Registered User
    Join Date
    Aug 2003
    Posts
    3
    i am running windowx xp home on a dell intell pentium 4

    heres is an example
    http://www.agent55.com/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  2. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM
  3. Hmm....help me take a look at this: File Encryptor
    By heljy in forum C Programming
    Replies: 3
    Last Post: 03-23-2002, 10:57 AM
  4. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 02:58 AM