<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Thanks! It's working with the in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Create-Directory-code/m-p/50416#M5652</link>
    <description>Thanks! It's working with the last code.</description>
    <pubDate>Thu, 18 Aug 2016 12:03:00 GMT</pubDate>
    <dc:creator>JoachimGeelen</dc:creator>
    <dc:date>2016-08-18T12:03:00Z</dc:date>
    <item>
      <title>Create Directory code</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Create-Directory-code/m-p/50413#M5649</link>
      <description>Hi all,

From the VBO we have use a Create Directory BO. This uses the following code
-----
Try
   If Not Directory.Exists(Directory_Path) Then
   	Directory.CreateDirectory(Directory_Path)
   Else
      If ErrorIfAlreadyExists Then Throw New ApplicationException("Directory already exists")
   End If

	Success = True
Catch Ex as Exception
	Success = False
	Error_Message = Ex.ToString()
End Try
----

We have two questions about this code:
- It doesn't seem to create a new directory
- How can we set a name (from a data file) as name of the directory?

Thanks for helping!</description>
      <pubDate>Tue, 16 Aug 2016 16:57:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Create-Directory-code/m-p/50413#M5649</guid>
      <dc:creator>JoachimGeelen</dc:creator>
      <dc:date>2016-08-16T16:57:00Z</dc:date>
    </item>
    <item>
      <title>The code will attempt to</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Create-Directory-code/m-p/50414#M5650</link>
      <description>The code will attempt to create a directory using the path you provide as an input. Assuming the path is valid, the directory does not already exist, and the Windows user has permission to create a directory, then the code should work. If it does not, an error message is provided as an output.</description>
      <pubDate>Tue, 16 Aug 2016 22:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Create-Directory-code/m-p/50414#M5650</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2016-08-16T22:06:00Z</dc:date>
    </item>
    <item>
      <title>path = @""path""+dataitem; //</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Create-Directory-code/m-p/50415#M5651</link>
      <description>path = @""path""+dataitem; // your data item should be input
try{
	if (System.IO.Directory.Exists(path))
	{
		checkPath=true;
	}
	else
	{
		System.IO.DirectoryInfo di = System.IO.Directory.CreateDirectory(path);
		checkPath=false;
	}
}
catch (Exception e)
{
    throw e;
}
This is C# code I use to Create and/or check folder
You need to have permissions to</description>
      <pubDate>Wed, 17 Aug 2016 11:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Create-Directory-code/m-p/50415#M5651</guid>
      <dc:creator>GopalBhaire</dc:creator>
      <dc:date>2016-08-17T11:27:00Z</dc:date>
    </item>
    <item>
      <title>Thanks! It's working with the</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Create-Directory-code/m-p/50416#M5652</link>
      <description>Thanks! It's working with the last code.</description>
      <pubDate>Thu, 18 Aug 2016 12:03:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Create-Directory-code/m-p/50416#M5652</guid>
      <dc:creator>JoachimGeelen</dc:creator>
      <dc:date>2016-08-18T12:03:00Z</dc:date>
    </item>
  </channel>
</rss>

