D
Daz
Hi everyone!
This is my first time posting in this group, although I have been
watching it for the past few months and have to say this is possibly
the best group I have seen on Google so far! (That wasn't a
butt-kissing comment, I just believe in giving praise when it's due).
I would like to copy files using globbing, and I am not sure of the
best way to do it. I have tried using system("COPY [source]
[destination]"), but It's still not quite what I am looking for.
Firstly (as this is a console application), I see the message "1
file(s) copied.", which I would rather not see. And...
Secondly I need to know the name of the output file once the copying
has completed.
I need to be able to copy files using both '*' and '?' wildcards, and I
will need a method of finding out what the output file was. I can only
think of long-winded ways of acheiving my objective, and if that's the
route I need to take, then so be it, but it would be great if there is
a function that I have overlooked so I don't need to find a big regex
header file to use in my tiny program.
Copying the file is only the first phase of the operation, before the
output file is formatted (hence why I need to know the name of the
output file).
If there is no standard way of doing this, any suggestions would be
fantastic. I have been learning C++ for about 3 months now, and I am
self-taught (to give me a headstart when I go to college), so I am far
from being an expert. With that said, I am not using it as an excuse
for my ignorance as I believe the best way to learn it by 'doing'.
However, I would rather learn to do something in the best way, as
opposed to learning the best ways in which how NOT to do something, and
never finding the best answer.
I don't necessarilly expect a solution, but any pointers (not *pointers
) would be very much appreciated.
Best wishes
Daz
This is my first time posting in this group, although I have been
watching it for the past few months and have to say this is possibly
the best group I have seen on Google so far! (That wasn't a
butt-kissing comment, I just believe in giving praise when it's due).
I would like to copy files using globbing, and I am not sure of the
best way to do it. I have tried using system("COPY [source]
[destination]"), but It's still not quite what I am looking for.
Firstly (as this is a console application), I see the message "1
file(s) copied.", which I would rather not see. And...
Secondly I need to know the name of the output file once the copying
has completed.
I need to be able to copy files using both '*' and '?' wildcards, and I
will need a method of finding out what the output file was. I can only
think of long-winded ways of acheiving my objective, and if that's the
route I need to take, then so be it, but it would be great if there is
a function that I have overlooked so I don't need to find a big regex
header file to use in my tiny program.
Copying the file is only the first phase of the operation, before the
output file is formatted (hence why I need to know the name of the
output file).
If there is no standard way of doing this, any suggestions would be
fantastic. I have been learning C++ for about 3 months now, and I am
self-taught (to give me a headstart when I go to college), so I am far
from being an expert. With that said, I am not using it as an excuse
for my ignorance as I believe the best way to learn it by 'doing'.
However, I would rather learn to do something in the best way, as
opposed to learning the best ways in which how NOT to do something, and
never finding the best answer.
I don't necessarilly expect a solution, but any pointers (not *pointers
) would be very much appreciated.
Best wishes
Daz