Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28384 Discussions

Create a new directory using Fortran 90

apostok
Beginner
2,996 Views
Hallo,

I want to create a new directory in a specific location in the hard disc using Fortran 90.Could you please help me with this issue?
0 Kudos
1 Solution
Les_Neilson
Valued Contributor II
2,996 Views
Since you posted here the I assume you are using the Intel Fortran compiler. See the makedirqq entry in the help.

use ifport
logical result
character(some_suitable_length) path
...
path = 'c:\path\to\wherever\you\need'
...

result=makedirqq(path)


(Note, as the help states, only one directory at a time can be created so in example above everything before "need" has to already exist)
Les

View solution in original post

0 Kudos
2 Replies
Les_Neilson
Valued Contributor II
2,997 Views
Since you posted here the I assume you are using the Intel Fortran compiler. See the makedirqq entry in the help.

use ifport
logical result
character(some_suitable_length) path
...
path = 'c:\path\to\wherever\you\need'
...

result=makedirqq(path)


(Note, as the help states, only one directory at a time can be created so in example above everything before "need" has to already exist)
Les
0 Kudos
apostok
Beginner
2,996 Views

It works. Thank you very much for your assistance.

0 Kudos
Reply