Click here to Skip to main content
11,928,605 members (51,384 online)
Rate this:
Please Sign up or sign in to vote.
See more: TurboC++
I was Trying to ,make this explorer ....
I am using dir command of dos to direct my data towards a data file and then read and display
The problem is it works for only the current working directory as we move back by using "cd .." it start showing the error invalid directory though it makes the data file ....
Posted 9-Jan-12 5:51am
Edited 9-Jan-12 7:56am
Smithers-Jones 9-Jan-12 10:59am
Here's a hint: Do not urge people by shouting and saying "ASAP". Members here on CP help for free in their sparetime, you don't have to pay them, so don't urge them or you only piss them off annoy them.
Richard MacCutchan 9-Jan-12 12:23pm
Look at the actual data in your dir command to see why it is not working. We cannot guess what your program is doing wrong.
nonson black 9-Jan-12 12:58pm
the dir is working properly. i am getting all the data in file the problem is i am not able to read the file via program .
Richard MacCutchan 9-Jan-12 14:12pm
What does this mean? You really need to explain your problem in detail and show the part of your program that is not working. As I said before, we cannot guess what is happening on your system, nor can we see what is on your screen.
SAKryukov 9-Jan-12 20:00pm
DOS? Are you serious? Do you use MS-DOS as your OS? Do you use Windows?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 9 Jan 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100