freelanceprogrammers.org Forum Index » C
changing working directory
Joined: 17 Jan 2005
Posts: 3
changing working directory
Hi ALL
Is there anyway to change the current working directory in a c program???
Thanks a LOT
1011
Joined: 25 Jul 2003
Posts: 48
changing working directory
Hi,
> -----Original Message-----
> From: one_zero_one_one [mailto:one_zero_one_one@...]
> Sent: Tuesday, February 01, 2005 9:24 PM
> To: Programmers-Town@yahoogroups.com
> Subject: (PT) changing working directory
>
>
> Hi ALL
>
> Is there anyway to change the current working directory in a c program???
Yes, but it is platform dependent. We need more information. What`s your:
- Target platform
- Development environment
HTH
Shyan
Joined: 27 Dec 2004
Posts: 14
changing working directory
--- Shyan Lam <sflam@...> wrote:
> Hi,
>
> > -----Original Message-----
> > From: one_zero_one_one
> [mailto:one_zero_one_one@...]
> > Sent: Tuesday, February 01, 2005 9:24 PM
> > To: Programmers-Town@yahoogroups.com
> > Subject: (PT) changing working directory
> >
> >
> > Hi ALL
> >
> > Is there anyway to change the current working
> directory in a c program???
>
> Yes, but it is platform dependent. We need more
> information. What`s your:
> - Target platform
> - Development environment
>
> HTH
> Shyan
>
iF ITS a TURBO OR BORLAND C++ Compiler then dos.h is
the header file..
There is a inbuilt function in dos.h which cnan not
only chnage the directory but also help in
creating,removing the driectory...
Regards,
Ashwin Mittal.
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com
Joined: 17 Jan 2005
Posts: 3
changing working directory
Hi
>Yes, but it is platform dependent. We need more
information. What`s your:
>- Target platform
>- Development environment
could you give me ideas for both linux and windows. I
am using turbo c in
windows and GCC in linux.
Thanks a LOT
1011
> Is there anyway to change the current working
directory in a c program???
Yes, but it is platform dependent. We need more
information. What`s your:
- Target platform
- Development environment
HTH
Shyan
To unsubscribe :
programmers-town-unsubscribe@yahoogroups.com
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
To unsubscribe from this group, send an email to:
Programmers-Town-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to the Yahoo!
Terms of Service.
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
Joined: 25 Jul 2003
Posts: 48
changing working directory
Reply embedded...
> -----Original Message-----
> From: 1011 10 [mailto:one_zero_one_one@...]
> Sent: Friday, February 04, 2005 3:30 AM
> To: Programmers-Town@yahoogroups.com
> Subject: Re: (PT) changing working directory
>
>
>
> Hi
>
> could you give me ideas for both linux and windows. I
> am using turbo c in
> windows and GCC in linux.
Unfortunately, I don`t use both compilers. And I doubt you can call Windows
API with Turbo C.
IIRC, look up <dos.h> in your Turbo C`s documentation.
IMHO, I thing you should ditch Turbo C and use a 32-bit compiler. Many
32-bit compilers running on Windows can have the full assess of the entire
Win32 APIs. Even if you`re not using the APIs, you get a better compiler
free from 16-bit limitations.
BTW, the Windows API for setting current directory is:
SetCurrentDirectory().
HTH
Shyan
All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help







