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

  • Thread starter Thread starter Sky2004
  • Start date Start date
AI Thread Summary
The discussion revolves around two programming questions posed by Yingtian regarding Visual C++. The first question inquires about pre-specifying the size and location of a command prompt window for an application. The responses indicate that there is no known method to achieve this. The second question asks for a simple way to create a folder using C. Warren suggests using the `mkdir` function, but Yingtian points out that this may only work on Unix systems and seeks an equivalent for Windows XP. Warren confirms that `mkdir` is also available on Windows, implying that it can be used for folder creation in that environment.
Sky2004
Messages
2
Reaction score
0
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.
 
Computer science news on Phys.org
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
 
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.
 
I'm pretty sure mkdir exists on windows as well.

- Warren
 
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Back
Top