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

MKDIR from IVF

Ernie_P_1
Beginner
1,118 Views
Hi,

I'm converting some old code (from Salford compiler). I want my programto make new directories. My old salford code looks like this:
CALL MKDIR@(DIRECTORY,ERROR_CODE)

This does not work in IVF. I'm trying to use SYSTEM and SYSTEMQQ. When the code executes, cmd starts with the correct directory but then defaults to my windows directory. I get the following message:
'\\SHARED_NETWORK_DRIVE\SOME_FOLDER\SOME SUB FOLDER'
CMD.EXE started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.

The default directory is C:\Windows, don't want to create directories here.

I have beentrying to use GetCWD in combination with NET USE commands to map a drive letter and make directories where I want them - but then I run into problems with folders being longer than 8 characters and having to use tildas~.

This worked fine using Salford - never got defaulted to my C drive. Is there some compiler setting I need so that UNC paths are supported and I can create directories from where my program is called? Maybe there is an easier way that I'm not aware of?

Thanks,
Ernie P.
0 Kudos
1 Reply
Ernie_P_1
Beginner
1,118 Views
MAKEDIRQQ works flawlessly.

Just needed to do a little more searching in the Help document.

-EP
0 Kudos
Reply