nitin_kumars
asked on
Copying a File in turboc c++3.00
How to copy one file from one directory to another directory
through a program in turbo c++ 3.00 ?
Kindly reply fast as its very urgent.
Thanks.
through a program in turbo c++ 3.00 ?
Kindly reply fast as its very urgent.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Is it for school or something? Why do you need it so fast?
What operating system are you using? DOS/Windows/Win95/98? If it is any of those, the system command should work. What is the value of the errno variable after you call system?
A return value of – 1 indicates an error, and errno is set to one of the following values:
E2BIG Argument list (which is system-dependent) is too big.
ENOENT Command interpreter cannot be found.
ENOEXEC Command-interpreter file has invalid format and is not executable.
ENOMEM Not enough memory is available to execute command; or available memory has been corrupted; or invalid block exists, indicating that process making call was not allocated properly.
What operating system are you using? DOS/Windows/Win95/98? If it is any of those, the system command should work. What is the value of the errno variable after you call system?
A return value of – 1 indicates an error, and errno is set to one of the following values:
E2BIG Argument list (which is system-dependent) is too big.
ENOENT Command interpreter cannot be found.
ENOEXEC Command-interpreter file has invalid format and is not executable.
ENOMEM Not enough memory is available to execute command; or available memory has been corrupted; or invalid block exists, indicating that process making call was not allocated properly.
ASKER
Thanx