|
From: Per W. <pw...@ia...> - 2008-03-19 07:53:37
|
I didn't see such an answer.
No, you should not use the system command to change directory. That is a
bad way to do it! Directory handling is part of the Posix standard...
What is wrong with chdir() and getcwd()?
When you originally asked, I gave you an answer how to google for the
required information. I guess you didn't take the time to bother? The end
result - you went the easiest way and selected a bad method to work with
directories. That is one of the problems for people who think Internet is
a distributed help desk.
Just note that M$ has the bad habit to add a leading underscore to a lot
of functions, just to make life a bitch for developers.
And if you make use directly of the Win32 API, you have access to native
Win32 function swith or without Unicode support. But I leave that as an
exercise for you. But think about adding MSDN as a keyword when
googling, since M$ keeps their online documentation on their Microsoft
Development Network...
/pwm
On Tue, 18 Mar 2008, William OConnell wrote:
> Hello All,
>
> I recently submitted a question about file
> manipulation in Dev C++. For example, I wanted to
> know how to change directory.
>
> I was told to use the system ("command") approach.
> Now I do thank those who made the suggestion. It did
> work. But, I have an additional question. Is there
> any way to get data back so that I can determine the
> current drive and directory?
>
> Thanks in advance.
> Bill O'Connell
> wil...@ya...
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|