Creating a folder


John Dowbiggin
 

Hi

 

What is the simplest way to create a folder from within Unipaas 1.9.  To be specific, I want to make sure that the C:\temp folder exists and if it doesn’t then create it.

 

Regards

 

John


Steve Greenfield
 

Call UDP '@Kernel32.CreateDirectoryA'

4 Arguments
'A44'
directory name
0 (zero)
result virtual - Numeric N4

If you want to create sub-directories you need to loop through creating each level individually - so C:\Temp\Temp\Temp would need 3 separate iterations 

Regards

Steve Greenfield
DataFormation UK Ltd


Steven Burrows
 

OMG John, still wrestling with UniPaas poor chap.

 

Even simpler might be to use the OS Temp folder via “OSEnvGet” – You can be sure it exists, that you have rights to do whatever you like, and Windows will even clear it up when it feels like it.

 

Steven Burrows

 

From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of John Dowbiggin via groups.io
Sent: 12 October 2022 12:13
To: main@magicu-l.groups.io
Subject: [magicu-l] Creating a folder

 

Hi

 

What is the simplest way to create a folder from within Unipaas 1.9.  To be specific, I want to make sure that the C:\temp folder exists and if it doesn’t then create it.

 

Regards

 

John


John Dowbiggin
 

Thanks, Steve, I’ll try that.

 

BTW – this dog is a bit old to be learning new tricks!

 

From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of Steven Burrows
Sent: 12 October 2022 12:27
To: main@magicu-l.groups.io
Subject: Re: [magicu-l] Creating a folder

 

OMG John, still wrestling with UniPaas poor chap.

 

Even simpler might be to use the OS Temp folder via “OSEnvGet” – You can be sure it exists, that you have rights to do whatever you like, and Windows will even clear it up when it feels like it.

 

Steven Burrows

 

From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of John Dowbiggin via groups.io
Sent: 12 October 2022 12:13
To: main@magicu-l.groups.io
Subject: [magicu-l] Creating a folder

 

Hi

 

What is the simplest way to create a folder from within Unipaas 1.9.  To be specific, I want to make sure that the C:\temp folder exists and if it doesn’t then create it.

 

Regards

 

John


John Dowbiggin
 

Thanks,Steve.  Actuallt using Steve B’s suggestion

 

From: main@magicu-l.groups.io <main@magicu-l.groups.io> On Behalf Of Steve Greenfield via groups.io
Sent: 12 October 2022 12:26
To: main@magicu-l.groups.io
Subject: Re: [magicu-l] Creating a folder

 

Call UDP '@Kernel32.CreateDirectoryA'

4 Arguments
'A44'
directory name
0 (zero)
result virtual - Numeric N4

If you want to create sub-directories you need to loop through creating each level individually - so C:\Temp\Temp\Temp would need 3 separate iterations 

Regards

Steve Greenfield
DataFormation UK Ltd