-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
(e-mail address removed) (caroundw5h) wrote in message
Wow, does anything ever get done around here?
Code:
#include <stdio.h>
#include <stdlib.h>// for system
int main(void)
{
system("md HEREIAM");
system("mkdir PICKABOO");
return 0;
}
compile the following on windows save it in the C: directory then go
back and look for the file names passed as arguments.
or if you want you can pass the path to system after md:
ex: md path\kdkdk\kdkdk\kkdkd
or just #include <windows.h>
and use CreateDirectory("path to dir");
Hmmm... I don't think that works.
~/code $ cat mdir.c
#include <windows.h>
int main(void)
{
CreateDirectory("/home/lpitcher/newdirectory");
return 0;
}
~/code $ cc -o mdir mdir.c
mdir.c:1:21: windows.h: No such file or directory
~/code $ uname -a
Linux bitsie 2.4.26 #7 Mon Apr 19 23:43:43 EDT 2004 i686 unknown
Apparently, the "windows.h" include file isn't part of the gcc compiler kit.
Obviously, it's not part of standard C, otherwise it would have been included
in gcc.
- --
Lew Pitcher
Master Codewright & JOAT-in-training | GPG public key available on request
Registered Linux User #112576 (
http://counter.li.org/)
Slackware - Because I know what I'm doing.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird -
http://enigmail.mozdev.org
iD8DBQFBjtB6agVFX4UWr64RApjjAKDpwOa4/t4WphldLtYF4/5+FioflgCgrKjV
uX8jutsqubx6rPVhFCtXNFI=
=OxL4
-----END PGP SIGNATURE-----