Create directory with name at runtime

Hi,

I wish to create a directory with the directory name assigned at runtime. Eg. While running, the program has to search for a file named abc.txt at path C: and if the file is present then create a directory named "abc" at C:\\temp\\

My understanding is if I use CreateDirectory(pathname) function, then I need to specify the path along with the directory name.

Please help me.
I don't think there is anything preventing you from using a variable to represent the path or any part of it.
Topic archived. No new replies allowed.