<?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 Hyperlink or HTML Popup - need to open a folder in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346054#M27137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Designing a mapping process with efficient maintenance. Each point and polygon may have many documents associated with it. License level prevents attachments. One-to-many relationship to table of links is a possible solution, but hard to maintain for the non-gis staff using the end product. If the hyperlink or html pop up provided a link to open a folder, then all new documents in the future could just be put in that folder. I have searched documentation and the internet and saw two people doing what looked to be solutions - (a) creating shortcuts (.lnk) files for each folder and (b) someone actually able to open a folder. Neither seem to work. ArcMap 10.2 Basic license, file gdb holds features. Folders of documents at same "layer" as mxd. Relative paths checked. Have tried hyperlink scripts both python and VBscript, and sample popup css file with the // lines tweaked. Closest I've gotten was a windows explorer opening, but to c:\ not the desired folder. Or get "Cannot find "file://&amp;lt;correct-filepath-and-folder-name&amp;gt;&amp;nbsp; Make sure the path or file name is correct." Or get nothing at all. Any thoughts or ideas welcome. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Oct 2014 01:44:11 GMT</pubDate>
    <dc:creator>KimSlezak</dc:creator>
    <dc:date>2014-10-07T01:44:11Z</dc:date>
    <item>
      <title>Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346054#M27137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Designing a mapping process with efficient maintenance. Each point and polygon may have many documents associated with it. License level prevents attachments. One-to-many relationship to table of links is a possible solution, but hard to maintain for the non-gis staff using the end product. If the hyperlink or html pop up provided a link to open a folder, then all new documents in the future could just be put in that folder. I have searched documentation and the internet and saw two people doing what looked to be solutions - (a) creating shortcuts (.lnk) files for each folder and (b) someone actually able to open a folder. Neither seem to work. ArcMap 10.2 Basic license, file gdb holds features. Folders of documents at same "layer" as mxd. Relative paths checked. Have tried hyperlink scripts both python and VBscript, and sample popup css file with the // lines tweaked. Closest I've gotten was a windows explorer opening, but to c:\ not the desired folder. Or get "Cannot find "file://&amp;lt;correct-filepath-and-folder-name&amp;gt;&amp;nbsp; Make sure the path or file name is correct." Or get nothing at all. Any thoughts or ideas welcome. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 01:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346054#M27137</guid>
      <dc:creator>KimSlezak</dc:creator>
      <dc:date>2014-10-07T01:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346055#M27138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this in VB as the hyperlink script...the paths contained a final backslash ie c\temp\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function OpenLink ( [HereYaGo] )&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim path&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dim objShell&lt;/P&gt;&lt;P&gt;&amp;nbsp; path = [HereYaGo]&lt;/P&gt;&lt;P&gt;&amp;nbsp; Set objShell = CreateObject("Shell.Application")&lt;/P&gt;&lt;P&gt;&amp;nbsp; objShell.ShellExecute path, "", "", "open", 1&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In python, this translates to (be careful with the spacing, there are 2 before the indented lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import webbrowser&lt;/P&gt;&lt;P&gt;def OpenLink ( [HereYaGo] &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; path = [HereYaGo]&lt;/P&gt;&lt;P&gt;&amp;nbsp; webbrowser.open(path)&lt;/P&gt;&lt;P&gt;&amp;nbsp; return&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 05:57:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346055#M27138</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-07T05:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346056#M27139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but these are the sample scripts given in ArcMap, which no matter how I put the [HereYaGo] folder name only opens Internet Explorer on the home page, or if it reads the folder name it of course can't find the folder on the internet so it goes to a search page looking for that folder on the web. Yes, it works with c:\temp but can it work with relative path to the mxd? Wrote code to get the mxd path, remove the name of the mxd form the full path, add subdirectory, then the actual folder that contains all the docs for that point/polygon. Path IS the proper path to the folder I want. But&amp;nbsp; doesn't open it. This code opens IE at home page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import webbrowser, arcpy&lt;BR /&gt;def OpenLink ( [HereYaGo]&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&amp;nbsp; mxd = arcpy.mapping.MapDocument("Current")&lt;BR /&gt;&amp;nbsp; fullpath = mxd.filePath&lt;BR /&gt;&amp;nbsp; chunks = fullpath.split('\\')&lt;BR /&gt;&amp;nbsp; fpathpts = chunks[:-1]&lt;BR /&gt;&amp;nbsp; fpath = "\\".join(fpathpts)&lt;BR /&gt;&amp;nbsp; leftpath = fpath + "\\foldername\\"&lt;BR /&gt;&amp;nbsp; path = leftpath + [HereYaGo] &lt;BR /&gt;&amp;nbsp; webbrowser.open(path)&lt;BR /&gt;&amp;nbsp; return&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 16:49:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346056#M27139</guid>
      <dc:creator>KimSlezak</dc:creator>
      <dc:date>2014-10-07T16:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346057#M27140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just thinking in the context of ArcMap's HTML popup...&amp;nbsp; If the attribute of the feature is a url or link, similar to this, it will open windows explorer to the specified folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="file://///computer_name/data/layerfiles"&amp;gt;click&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 18:13:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346057#M27140</guid>
      <dc:creator>MarkBockenhauer</dc:creator>
      <dc:date>2014-10-07T18:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346058#M27141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the video &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6162394788001w320h240r418" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6162394788001" data-account="6161463677001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6161463677001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6162394788001w320h240r418');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.esri.com/t5/video/gallerypage/video-id/6162394788001"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 19:04:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346058#M27141</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-07T19:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346059#M27142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Mark, but that didn't work no matter how I tried computer_name and I didn't see how I could make that dynamic when the project is given to the client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did find one issue was 'the depth' of the folder and maybe that's partly due to Win7 and the libraries setup.&lt;/P&gt;&lt;P&gt;Moved the folder containing the mxd and the subfolder with subfolders of documents to root c:\ this code opens Window Explorer to the proper folder when the subfolder is hardcoded. When put in the Hyperlink Script function and leave the subfolder hardcoded (rtpath location), it still opens the correct folder. When I change the folder name from hardcoded to the attribute field, it goes back to Internet Explorer and doesn't open any folder. (I tried it with [HereYaGo]&amp;nbsp; directly in the path statement and when that didn't work, moved it to a variable and that didn't work either)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import webbrowser, arcpy&lt;/P&gt;&lt;P&gt;def OpenLink ( [HereYaGo] &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mxd = arcpy.mapping.MapDocument("Current")&lt;/P&gt;&lt;P&gt;&amp;nbsp; fullpath = mxd.filePath&lt;/P&gt;&lt;P&gt;&amp;nbsp; chunks = fullpath.split('\\')&lt;/P&gt;&lt;P&gt;&amp;nbsp; fpathpts = chunks[:-1]&lt;/P&gt;&lt;P&gt;&amp;nbsp; fpath = "\\".join(fpathpts)&lt;/P&gt;&lt;P&gt;&amp;nbsp; leftpath = fpath + "\\foldername\\"&lt;/P&gt;&lt;P&gt;&amp;nbsp; rtpath = [HereYaGo] &lt;/P&gt;&lt;P&gt;&amp;nbsp; path = leftpath + rtpath&lt;/P&gt;&lt;P&gt;&amp;nbsp; webbrowser.open(path)&lt;/P&gt;&lt;P&gt;&amp;nbsp; return&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 18:54:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346059#M27142</guid>
      <dc:creator>KimSlezak</dc:creator>
      <dc:date>2014-10-08T18:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346060#M27143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Dan. I see your code is a bit more concise and in your video I see it works. I made my code look exactly like yours and it still opens IE. What other setting 'in the background' do I need to track down? Inside ArcMap? Outside ArcMap? Hmmm, actually install 10.2 if that makes a difference (downloaded but didn't update, call me stupid.) But would that actually make a difference? And now I guess have to ask about the next release if the client is upgrading will it change anything?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Oct 2014 22:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346060#M27143</guid>
      <dc:creator>KimSlezak</dc:creator>
      <dc:date>2014-10-08T22:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346061#M27144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kim can you do a screen shot of your field&amp;nbsp; rtpath = [HereYaGo] ... the only way it didn't work for me is if the path didn't end in a /&amp;nbsp; (ie&amp;nbsp;&amp;nbsp; /somefolder/ )&amp;nbsp; I did nothing else to get it to work...If you have a convoluted or a network path, maybe everything is out the window...but at least get it working with files in a local folder first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 01:12:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346061#M27144</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-09T01:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346062#M27145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, here's a shot with your code and the attribute in question. I have tried every possible combination of slashes or no slashes. Here's the screen shot you asked for. I've discovered the path information in the script does not override the Hyperlink base in Map Document Properties. Nor can it be relative (??). So if I repeat c:\xxx\yyyy\DevilsLakeSites\&amp;lt;folder2hyperlink2&amp;gt; in the script and c:\xxx\yyyy\DevilsLakeSites\ in the Hyperlink base, the hyperlink works. Is there a way for script to be dynamic and not rely on the Hyperlink base so that every time yyyy (which is the main project folder with mxd using relative paths) is moved the new user doesn't have to update the Hyperlink base?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Hyperlink_problem.png" class="jive-image image-1" height="484" src="https://community.esri.com/legacyfs/online/18959_Hyperlink_problem.png" style="height: 484px; width: 660.642px;" width="661" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 02:42:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346062#M27145</guid>
      <dc:creator>KimSlezak</dc:creator>
      <dc:date>2014-10-09T02:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346063#M27146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using this in the hyperlink script it works on local machines. Haven't been able to get it to work over a network. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import webbrowser, arcpy&lt;/P&gt;&lt;P&gt;def OpenLink ( [HereYaGo]&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; mxd = arcpy.mapping.MapDocument("Current")&lt;/P&gt;&lt;P&gt;&amp;nbsp; part_1 = mxd.filePath.replace("\\","/").split("/")[:-1]&lt;/P&gt;&lt;P&gt;&amp;nbsp; part_2 = "/".join(part_1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; final_path = part_2 + "/mainfolder/" +[HereYaGo] + "/"&lt;/P&gt;&lt;P&gt;&amp;nbsp; webbrowser.open(final_path)&lt;/P&gt;&lt;P&gt;&amp;nbsp; return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought if I changed it to the gdb's location (workspace) it would work over network, but no. Both versions over network open IE searching and not the folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import webbrowser, arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;def OpenLink ( [HereYaGo]&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; wksp = env.workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp; part_1 = wksp.replace("\\","/").split("/")[:-1]&lt;/P&gt;&lt;P&gt;&amp;nbsp; part_2 = "/".join(part_1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; final_path = part_2 + "/mainfolder/" + [HereYaGo] + "/"&lt;/P&gt;&lt;P&gt;&amp;nbsp; webbrowser.open(final_path)&lt;/P&gt;&lt;P&gt;&amp;nbsp; return&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 22:08:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346063#M27146</guid>
      <dc:creator>KimSlezak</dc:creator>
      <dc:date>2014-10-26T22:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346064#M27147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;and you get no error messages...is your code indented 2 spaces or 1?&amp;nbsp; Not that it matters as long as it is indented in a similar fashion (notice the grasping at straws).&amp;nbsp; It must be a network thing so unless someone else can verify a similar task over a network or you have access to another network, ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 00:42:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346064#M27147</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-27T00:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hyperlink or HTML Popup - need to open a folder</title>
      <link>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346065#M27148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eureka!&lt;/P&gt;&lt;P&gt;Thanks, Dan for riding thru the pain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This version works either with the mxd on local using data on network drive or with mxd on network drive with the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import webbrowser, arcpy, os&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;def OpenLink ( [HereYaGo]&amp;nbsp;&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; wksp = env.workspace&lt;/P&gt;&lt;P&gt;&amp;nbsp; part_1 = wksp.replace("\\","/").split("/")[:-1]&lt;/P&gt;&lt;P&gt;&amp;nbsp; part_2 = "\\".join(part_1)&lt;/P&gt;&lt;P&gt;&amp;nbsp; final_path = os.path.join(part_2, "mainfolder",[HereYaGo] )&lt;/P&gt;&lt;P&gt;&amp;nbsp; webbrowser.open(final_path)&lt;/P&gt;&lt;P&gt;&amp;nbsp; return&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The map properties hyperlink base is not needed, but the default gdb for the map must be set to this gdb. So when new maps are created and the feature class added, that setting and adding the script is needed. I'm suggesting to the client that the mxd is copied/save as new mxd and then modified if new layouts or what have you are needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 02:07:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/hyperlink-or-html-popup-need-to-open-a-folder/m-p/346065#M27148</guid>
      <dc:creator>KimSlezak</dc:creator>
      <dc:date>2014-10-27T02:07:41Z</dc:date>
    </item>
  </channel>
</rss>

