- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
MAKEDIRQQ works flawlessly.
Just needed to do a little more searching in the Help document.
-EP
Just needed to do a little more searching in the Help document.
-EP

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page