|
|
|
Как узнать, существует ли каталог?
|
|||
|---|---|---|---|
|
#18+
Как узнать, существует ли каталог на чистом C/C++? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.08.2006, 13:19 |
|
||
|
Как узнать, существует ли каталог?
|
|||
|---|---|---|---|
|
#18+
А какая ОС? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.08.2006, 15:32 |
|
||
|
Как узнать, существует ли каталог?
|
|||
|---|---|---|---|
|
#18+
F1 Header File dir.h Category Directory Control Routines Prototype int chdir(const char *path); int _wchdir(const wchar_t *path); Description Changes current directory. chdir causes the directory specified by path to become the current working directory; path must specify an existing directory. A drive can also be specified in the path argument, such as chdir("a:\\BC") but this method changes only the current directory on that drive; it does not change the active drive. Under Windows, only the current process is affected. Return Value Upon successful completion, chdir returns a value of 0. Otherwise, it returns a value of -1, and the global variable errno is set to ENOENT Path or file name not found + перед этим setdisk ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.08.2006, 15:32 |
|
||
|
Как узнать, существует ли каталог?
|
|||
|---|---|---|---|
|
#18+
можно проще (из VCL содрал): bool dirExists(const char* dirName){ DWORD code = GetFileAttributes(dirName); return (code != 0xFFFFFFFF)&&((code & FILE_ATTRIBUTE_DIRECTORY)!=0); } ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.08.2006, 01:33 |
|
||
|
Как узнать, существует ли каталог?
|
|||
|---|---|---|---|
|
#18+
ИЗвините. В тему не вчитался... :( ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.08.2006, 01:38 |
|
||
|
Как узнать, существует ли каталог?
|
|||
|---|---|---|---|
|
#18+
man stat ну или _stat ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 17.08.2006, 07:37 |
|
||
|
|

start [/forum/topic.php?fid=57&fpage=339&tid=2030672]: |
0ms |
get settings: |
6ms |
get forum list: |
21ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
60ms |
get topic data: |
14ms |
get forum data: |
3ms |
get page messages: |
58ms |
get tp. blocked users: |
2ms |
| others: | 217ms |
| total: | 389ms |

| 0 / 0 |
