Jump to content

How to create Link to Directory

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
shidlingayya

shidlingayya

    Newbie

  • Members
  • Pip
  • 3 posts
Dear All,
I am new to C programming..i am working for one Software Firm..my problem can be devided as follows

[code]
1. I have one folder in any drive it contains both Source files(.C) and Header
files(.H) i should get copy of this folder into my current working directory

2. I should separate both .C and .H files

3. In .C files there are preprocessor directives like #include "CAN.h" i have to convert this into lower case like #include "can.h"


[\code]

Can any body help to solve this?? Thanks in advance

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
1&2) Using the system command, you can copy your files using standard OS commands.
3) You will have to open each .C file and parse each line. Do you know how to open/write files?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
In .NET there are a range of helpful classes, under the System.IO namespace. Not that anyone seems to like .NET, though...
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#4
shidlingayya

shidlingayya

    Newbie

  • Members
  • Pip
  • 3 posts

WingedPanther said:

1&2) Using the system command, you can copy your files using standard OS commands.
3) You will have to open each .C file and parse each line. Do you know how to open/write files?

Hello Panther,
I got it only for single file..but my task is:-




1. I have one folder already it contains .C and .H files..i have to identify only
.C files
2. There are uppercase preprocessor directives are there like
#include "CAN.C" ---convert--->#include "can.c"




#5
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
At this point, it will depend on what your operating system is.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#6
shidlingayya

shidlingayya

    Newbie

  • Members
  • Pip
  • 3 posts

WingedPanther said:

At this point, it will depend on what your operating system is.

i am using window 2000

#7
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
You can search on MSDN for the Windows API
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog