PDA

View Full Version : Help needed!


Sky2004
May13-04, 12:31 AM
Hi! :frown:
I have 2 programming questions here. Hope you could help me with it.

Q1) Is there a way to pre-specify the size and location of command prompt window that runs along with my application written using Visual C++ ? Be it using C or some batch command?

Q2) Is there a simple way to create a folder using C ?


Thank you,
Yingtian.

chroot
May13-04, 02:20 AM
1) not that I'm aware of.

2) #include <sys/types.h>
#include <sys/stat.h>

int mkdir (const char *path, mode_t mode);

- Warren

Sky2004
May13-04, 01:17 PM
Thanks for your reply!

For Q2), the mkdir u suggested seems to work only for unix? I forgot to say that I am using windows xp...so...is there an equivalent simple syntax for it?

Regards,
Yingtian.

chroot
May13-04, 03:16 PM
I'm pretty sure mkdir exists on windows as well.

- Warren