www.autoitscript.com
Open in
urlscan Pro
2001:8d8:9b1:7400::48:ee14
Public Scan
URL:
https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/
Submission Tags: falconsandbox
Submission: On September 09 via api from US — Scanned from US
Submission Tags: falconsandbox
Submission: On September 09 via api from US — Scanned from US
Form analysis
9 forms found in the DOMPOST https://www.autoitscript.com/forum/login/
<form accept-charset="utf-8" method="post" action="https://www.autoitscript.com/forum/login/">
<input type="hidden" name="csrfKey" value="c327c170963633c8071c3f483cd211e4">
<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cuYXV0b2l0c2NyaXB0LmNvbS9mb3J1bS90b3BpYy8xODY2OTAtY29tbWFuZC1saW5lLXV0aWxpdHktdG8tdW5ibG9jay1maWxlcy8=">
<div data-role="loginForm">
<div class="ipsPad ipsForm ipsForm_vertical">
<h4 class="ipsType_sectionHead">Sign In</h4>
<br><br>
<ul class="ipsList_reset">
<li class="ipsFieldRow ipsFieldRow_noLabel ipsFieldRow_fullWidth">
<input type="email" placeholder="Email Address" name="auth" autocomplete="email">
</li>
<li class="ipsFieldRow ipsFieldRow_noLabel ipsFieldRow_fullWidth">
<input type="password" placeholder="Password" name="password" autocomplete="current-password">
</li>
<li class="ipsFieldRow ipsFieldRow_checkbox ipsClearfix">
<span class="ipsCustomInput">
<input type="checkbox" name="remember_me" id="remember_me_checkbox" value="1" checked="" aria-checked="true">
<span></span>
</span>
<div class="ipsFieldRow_content">
<label class="ipsFieldRow_label" for="remember_me_checkbox">Remember me</label>
<span class="ipsFieldRow_desc">Not recommended on shared computers</span>
</div>
</li>
<li class="ipsFieldRow ipsFieldRow_fullWidth">
<button type="submit" name="_processLogin" value="usernamepassword" class="ipsButton ipsButton_primary ipsButton_small" id="elSignIn_submit">Sign In</button>
<p class="ipsType_right ipsType_small">
<a href="https://www.autoitscript.com/forum/lostpassword/" data-ipsdialog="" data-ipsdialog-title="Forgot your password?">
Forgot your password?</a>
</p>
</li>
</ul>
</div>
</div>
</form>
POST //www.autoitscript.com/forum/search/?do=quicksearch
<form accept-charset="utf-8" action="//www.autoitscript.com/forum/search/?do=quicksearch" method="post">
<input type="search" id="elSearchField" placeholder="Search..." name="q" autocomplete="off" aria-label="Search">
<details class="cSearchFilter">
<summary class="cSearchFilter__text">This Topic</summary>
<ul class="cSearchFilter__menu">
<li><label><input type="radio" name="type" value="all"><span class="cSearchFilter__menuText">Everywhere</span></label></li>
<li><label><input type="radio" name="type" value="contextual_{"type":"forums_topic","nodes":9}" checked=""><span class="cSearchFilter__menuText">This Forum</span></label></li>
<li><label><input type="radio" name="type" value="contextual_{"type":"forums_topic","item":186690}" checked=""><span class="cSearchFilter__menuText">This Topic</span></label></li>
<li><label><input type="radio" name="type" value="forums_topic"><span class="cSearchFilter__menuText">Topics</span></label></li>
<li><label><input type="radio" name="type" value="downloads_file"><span class="cSearchFilter__menuText">Files</span></label></li>
<li><label><input type="radio" name="type" value="cms_pages_pageitem"><span class="cSearchFilter__menuText">Pages</span></label></li>
<li><label><input type="radio" name="type" value="cms_records1"><span class="cSearchFilter__menuText">Articles</span></label></li>
<li><label><input type="radio" name="type" value="calendar_event"><span class="cSearchFilter__menuText">Events</span></label></li>
<li><label><input type="radio" name="type" value="core_members"><span class="cSearchFilter__menuText">Members</span></label></li>
</ul>
</details>
<button class="cSearchSubmit" type="submit" aria-label="Search"><i class="fa fa-search"></i></button>
</form>
POST https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?csrfKey=c327c170963633c8071c3f483cd211e4&do=multimodComment
<form action="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?csrfKey=c327c170963633c8071c3f483cd211e4&do=multimodComment" method="post" data-ipspageaction="" data-role="moderationTools">
<a id="comment-1340656"></a>
<article id="elComment_1340656" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break"><span class="useractive">MattHiggs</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1340656" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-01-22T14:14:46Z" title="01/22/2017 02:14 PM" data-short="7 yr">January 22, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break">MattHiggs</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/content/" rel="nofollow" title="605 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 605
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1340656_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1340656"
data-quotedata="{"userid":90048,"username":"MattHiggs","timestamp":1485094486,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1340656}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1340656_menu" class="ipsComment_ellipsis" id="elControls_1340656" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1340656_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1340656_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1340656_menu" data-ipsdialog-title="Share this post" id="elSharePost_1340656" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1340656" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-01-22T14:14:46Z" title="01/22/2017 02:14 PM" data-short="7 yr">January 22, 2017</time></a>
<span class="ipsResponsive_hidePhone"> (edited) </span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<p> Wrote a command line utility which will unblock folders and files passed to it as a parameter. You can pass as many files/folders as you want as a parameter. If function detects "-r" or "/r" as first parameter, will
unblock files recursively for directories that are passed to it. Will perform following actions: </p>
<p>
<s>1) determine version of </s><s>powershell</s><s> installed on computer</s>
</p>
<p>
<s>2) if </s><s>powershell</s><s> version is greater than or equal to 3, will use </s><s>powershell</s><s> to unblock the files. Otherwise, will download "streams.exe" for 32-bit systems and "streams64.exe" for 64-bits systems
from </s><s>sysinternals</s><s> live server and unblock files by deleting the alternate streams on indicated folders.</s>
</p>
<div class="geshiCodeTop"><button type="button" onclick="geshiExpand(this);">expand</button><button type="button" onclick="geshiCollapse(this)" style="display: none">collapse</button> <button type="button"
onclick="geshiPopup(this)">popup</button></div>
<pre class="geshi geshiprinted lang-autoit ipsCode"><a href="https://www.autoitscript.com/autoit3/scite/docs/AutoIt3Wrapper.html"><span class="kw6">#Region </span></a><span class="co1">;**** Directives created by AutoIt3Wrapper_GUI ****</span>
<a href="https://www.autoitscript.com/autoit3/scite/docs/AutoIt3Wrapper.html"><span class="kw6">#AutoIt3Wrapper_UseX64=y</span></a>
<a href="https://www.autoitscript.com/autoit3/scite/docs/AutoIt3Wrapper.html"><span class="kw6">#AutoIt3Wrapper_Change2CUI=y</span></a>
<a href="https://www.autoitscript.com/autoit3/scite/docs/AutoIt3Wrapper.html"><span class="kw6">#AutoIt3Wrapper_Res_SaveSource=y</span></a>
<a href="https://www.autoitscript.com/autoit3/scite/docs/AutoIt3Wrapper.html"><span class="kw6">#AutoIt3Wrapper_Res_Language=1033</span></a>
<a href="https://www.autoitscript.com/autoit3/scite/docs/AutoIt3Wrapper.html"><span class="kw6">#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator</span></a>
<a href="https://www.autoitscript.com/autoit3/scite/docs/AutoIt3Wrapper.html"><span class="kw6">#EndRegion </span></a><span class="co1">;**** Directives created by AutoIt3Wrapper_GUI ****</span>
<span class="co1">; *** Start added by AutoIt3Wrapper ***</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords/include.htm"><span class="kw8">#include</span></a><span class="co0"> <InetConstants.au3></span>
<span class="co1">; *** End added by AutoIt3Wrapper ***</span>
<span class="co1">; *** Start added by AutoIt3Wrapper ***</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords/include.htm"><span class="kw8">#include</span></a><span class="co0"> <AutoItConstants.au3></span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords/include.htm"><span class="kw8">#include</span></a><span class="co0"> <WinAPIShPath.au3></span>
<span class="co1">; *** End added by AutoIt3Wrapper ***</span>
<span class="coMULTI">#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.15.0 (Beta)
Author: myName
Script Function:
Template AutoIt script.
#ce</span> <span class="sy0">----------------------------------------------------------------------------</span>
<span class="co1">; Script Start - Add your code below here</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords/include.htm"><span class="kw8">#include</span></a><span class="co0"> <Array.au3></span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords/include.htm"><span class="kw8">#include</span></a><span class="co0"> <File.au3></span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords/include.htm"><span class="kw8">#include</span></a><span class="co0"> <WinAPIFiles.au3></span>
<a href="https://www.autoitscript.com/autoit3/docs/functions/Opt.htm"><span class="kw3">Opt</span></a><span class="br0">(</span><span class="st0">"ExpandEnvStrings"</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span>
<span class="re0">$aCmdLine</span> <span class="sy0">=</span> <span class="sy1">_</span>WinAPI<span class="sy1">_</span>CommandLineToArgv<span class="br0">(</span><span class="re0">$CmdLineRaw</span><span class="br0">)</span>
<span class="re0">$recurs</span> <span class="sy0">=</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">False</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <span class="re0">$aCmdLine</span><span class="br0">[</span><span class="nu0">1</span><span class="br0">]</span> <span class="sy0">=</span> <span class="st0">"/?"</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">And</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/Int.htm"><span class="kw3">Int</span></a><span class="br0">(</span><span class="re0">$aCmdLine</span><span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span><span class="br0">)</span> <span class="sy0">=</span> <span class="nu0">1</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a><span class="br0">(</span><a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40TAB"><span class="kw2">@TAB</span></a> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40TAB"><span class="kw2">@TAB</span></a> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40TAB"><span class="kw2">@TAB</span></a> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40TAB"><span class="kw2">@TAB</span></a> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40TAB"><span class="kw2">@TAB</span></a> <span class="sy0">&</span> <span class="st0">"Unblock Files Command Line Utility"</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <span class="st0">"Unblock files."</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <span class="st0">"new_unblock.exe [/r] [[[drive:][path][filename]0] .... [[drive:][path][filename]n]]"</span> <span class="sy0">&</span> <span class="sy1">_</span>
<a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <span class="st0">"/r"</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40TAB"><span class="kw2">@TAB</span></a> <span class="sy0">&</span> <span class="st0">"if any of the paths that are passed to the tool are directories, this switch will recursively unblock all files within the directory."</span> <span class="sy0">&</span> <span class="sy1">_</span>
<a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <span class="st0">"[[[drive:][path][filename]0] .... [[drive:][path][filename]n]]"</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40TAB"><span class="kw2">@TAB</span></a> <span class="sy0">&</span> <span class="st0">"The paths that are passed to the tool to be unblocked. These paths can be files or folders. If a folder is specified, only the files in the root of that directory will be unblocked unless the /r switch is specified."</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">ElseIf</span></a> <span class="re0">$aCmdLine</span><span class="br0">[</span><span class="nu0">1</span><span class="br0">]</span> <span class="sy0">=</span> <span class="st0">"/?"</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">And</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/Int.htm"><span class="kw3">Int</span></a><span class="br0">(</span><span class="re0">$aCmdLine</span><span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span><span class="br0">)</span> <span class="sy0">></span> <span class="nu0">1</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/functions/ConsoleWriteError.htm"><span class="kw3">ConsoleWriteError</span></a><span class="br0">(</span><span class="st0">'Unexpected number of arguments. For information on how to use this tool, run "new_unblock.exe /?".'</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Else</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">For</span></a> <span class="re0">$i</span> <span class="sy0">=</span> <span class="nu0">1</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">To</span></a> <span class="re0">$aCmdLine</span><span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Step</span></a> <span class="nu0">1</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <span class="br0">(</span><span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span> <span class="sy0">=</span> <span class="st0">"/r"</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Or</span></a> <span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span> <span class="sy0">=</span> <span class="st0">"-r"</span><span class="br0">)</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">And</span></a> <span class="re0">$i</span> <span class="sy0">=</span> <span class="nu0">1</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<span class="re0">$recurs</span> <span class="sy0">=</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">True</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">ContinueLoop</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> IsFile<span class="br0">(</span><span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span><span class="br0">)</span> <span class="sy0">=</span> <span class="nu0">0</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <span class="re0">$recurs</span> <span class="sy0">=</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">True</span></a> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<span class="re0">$files</span> <span class="sy0">=</span> <span class="sy1">_</span>FileListToArrayRec<span class="br0">(</span><span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span><span class="sy0">,</span> <span class="st0">"*"</span><span class="sy0">,</span> <span class="re0">$FLTAR_FILES</span><span class="sy0">,</span> <span class="re0">$FLTAR_RECUR</span><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Else</span></a>
<span class="re0">$files</span> <span class="sy0">=</span> <span class="sy1">_</span>FileListToArray<span class="br0">(</span><span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span><span class="sy0">,</span> <span class="st0">"*"</span><span class="sy0">,</span> <span class="re0">$FLTA_FILES</span><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">For</span></a> <span class="re0">$b</span> <span class="sy0">=</span> <span class="nu0">1</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">To</span></a> <span class="re0">$files</span><span class="br0">[</span><span class="nu0">0</span><span class="br0">]</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Step</span></a> <span class="nu0">1</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"><span class="kw3">FileExists</span></a><span class="br0">(</span><span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span> <span class="sy0">&</span> <span class="st0">"\"</span> <span class="sy0">&</span> <span class="re0">$files</span><span class="br0">[</span><span class="re0">$b</span><span class="br0">]</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="br0">)</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a> <span class="br0">(</span> <span class="st0">"Unblocking file "</span> <span class="sy0">&</span> <span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span> <span class="sy0">&</span> <span class="st0">"\"</span> <span class="sy0">&</span> <span class="re0">$files</span><span class="br0">[</span><span class="re0">$b</span><span class="br0">]</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="br0">)</span>
<span class="sy1">_</span>WinAPI<span class="sy1">_</span>DeleteFile<span class="br0">(</span><span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span> <span class="sy0">&</span> <span class="st0">"\"</span> <span class="sy0">&</span> <span class="re0">$files</span><span class="br0">[</span><span class="re0">$b</span><span class="br0">]</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier:$DATA"</span><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Else</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">ContinueLoop</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Next</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Else</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"><span class="kw3">FileExists</span></a><span class="br0">(</span><span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="br0">)</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a> <span class="br0">(</span> <span class="st0">"Unblocking file "</span> <span class="sy0">&</span> <span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="br0">)</span>
<span class="sy1">_</span>WinAPI<span class="sy1">_</span>DeleteFile<span class="br0">(</span><span class="re0">$aCmdLine</span><span class="br0">[</span><span class="re0">$i</span><span class="br0">]</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier:$DATA"</span><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Else</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">ContinueLoop</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Next</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/functions/ConsoleWrite.htm"><span class="kw3">ConsoleWrite</span></a> <span class="br0">(</span> <span class="st0">"DONE"</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Func</span></a> IsFile<span class="br0">(</span><span class="re0">$sFilePath</span><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Return</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/Number.htm"><span class="kw3">Number</span></a><span class="br0">(</span><a href="https://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"><span class="kw3">FileExists</span></a><span class="br0">(</span><span class="re0">$sFilePath</span><span class="br0">)</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">And</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/StringInStr.htm"><span class="kw3">StringInStr</span></a><span class="br0">(</span><a href="https://www.autoitscript.com/autoit3/docs/functions/FileGetAttrib.htm"><span class="kw3">FileGetAttrib</span></a><span class="br0">(</span><span class="re0">$sFilePath</span><span class="br0">)</span><span class="sy0">,</span> <span class="st0">"D"</span><span class="sy0">,</span> <span class="nu0">2</span><span class="sy0">,</span> <span class="nu0">1</span><span class="br0">)</span> <span class="sy0">=</span> <span class="nu0">0</span><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndFunc</span></a> <span class="co1">;==>IsFile</span></pre>
<p>
<s>*Edit 2/3/2017: I updated the code so that, when the </s><s>powershell</s><s> method is used, a path that is under "Program </s><s>files</s><s>" or "program files (x86)" does not return an error.</s>
</p>
<p> **EDIT: The script has been re-written so that it is able to accomplish the same functionality without any prerequisites. Only runs pure AutoIT now. A big thanks to @argumentum for the idea. </p>
<span class="ipsType_reset ipsType_medium ipsType_light" data-excludequote="">
<strong>Edited <time datetime="2017-06-01T20:18:52Z" title="06/01/2017 08:18 PM" data-short="7 yr">June 1, 2017</time> by MattHiggs</strong>
</span>
</div>
<div class="ipsItemControls">
<div data-controller="core.front.core.reaction" class="ipsItemControls_right ipsClearfix ">
<div class="ipsReact ipsPos_right">
<div class="ipsReact_blurb " data-role="reactionBlurb">
<ul class="ipsReact_reactions">
<li class="ipsReact_overview ipsType_blendLinks">
<a href="https://www.autoitscript.com/forum/profile/4574-argumentum/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/4574-argumentum/?do=hovercard" title="Go to argumentum's profile" class="ipsType_break">argumentum</a>
</li>
<li class="ipsReact_reactCount">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=showReactionsComment&comment=1340656&reaction=1" data-ipsdialog="" data-ipsdialog-size="medium" data-ipsdialog-title="See who reacted to this" data-ipstooltip="" data-ipstooltip-label="<strong>Like</strong><br>Loading..." data-ipstooltip-ajax="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=showReactionsComment&comment=1340656&reaction=1&tooltip=1" data-ipstooltip-safe="" title="See who reacted "Like"">
<span>
<img src="https://www.autoitscript.com/forum/uploads/reactions/react_like.png" alt="Like" loading="lazy">
</span>
<span>
1
</span>
</a>
</li>
</ul>
</div>
</div>
</div>
<ul class="ipsComment_controls ipsClearfix ipsItemControls_left" data-role="commentControls">
<li class="ipsHide" data-role="commentLoading">
<span class="ipsLoading ipsLoading_tiny ipsLoading_noAnim"></span>
</li>
</ul>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1340656_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1340656&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1340656" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1340656" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1340656&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="Wrote a command line utility which will unblock folders and files passed to it as a parameter. You can pass as many files/folders as you want as a parameter. If function detects "-r" or "/r" as first parameter, will unblock files recursively for directories that are passed to it. Will perform following actions:
1) determine version of powershell installed on computer
2) if powershell version is greater than or equal to 3, will use powershell to unblock the files. Otherwise, will download "streams.exe" for 32-bit systems and "streams64.exe" for 64-bits systems from sysinternals live server and unblock files by deleting the alternate streams on indicated folders.
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_UseX64=y
#AutoIt3Wrapper_Change2CUI=y
#AutoIt3Wrapper_Res_SaveSource=y
#AutoIt3Wrapper_Res_Language=1033
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
; *** Start added by AutoIt3Wrapper ***
#include <InetConstants.au3>
; *** End added by AutoIt3Wrapper ***
; *** Start added by AutoIt3Wrapper ***
#include <AutoItConstants.au3>
#include <WinAPIShPath.au3>
; *** End added by AutoIt3Wrapper ***
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.15.0 (Beta)
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <Array.au3>
#include <File.au3>
#include <WinAPIFiles.au3>
Opt("ExpandEnvStrings", 1)
$aCmdLine = _WinAPI_CommandLineToArgv($CmdLineRaw)
$recurs = False
If $aCmdLine[1] = "/?" And Int($aCmdLine[0]) = 1 Then
ConsoleWrite(@CRLF & @CRLF & @TAB & @TAB & @TAB & @TAB & @TAB & "Unblock Files Command Line Utility" & @CRLF & @CRLF & "Unblock files." & @CRLF & "new_unblock.exe [/r] [[[drive:][path][filename]0] .... [[drive:][path][filename]n]]" & _
@CRLF & @CRLF & "/r" & @TAB & "if any of the paths that are passed to the tool are directories, this switch will recursively unblock all files within the directory." & _
@CRLF & @CRLF & "[[[drive:][path][filename]0] .... [[drive:][path][filename]n]]" & @TAB & "The paths that are passed to the tool to be unblocked. These paths can be files or folders. If a folder is specified, only the files in the root of that directory will be unblocked unless the /r switch is specified." & @CRLF)
ElseIf $aCmdLine[1] = "/?" And Int($aCmdLine[0]) > 1 Then
ConsoleWriteError('Unexpected number of arguments. For information on how to use this tool, run "new_unblock.exe /?".' & @CRLF)
Else
For $i = 1 To $aCmdLine[0] Step 1
If ($aCmdLine[$i] = "/r" Or $aCmdLine[$i] = "-r") And $i = 1 Then
$recurs = True
ContinueLoop
EndIf
If IsFile($aCmdLine[$i]) = 0 Then
If $recurs = True Then
$files = _FileListToArrayRec($aCmdLine[$i], "*", $FLTAR_FILES, $FLTAR_RECUR)
Else
$files = _FileListToArray($aCmdLine[$i], "*", $FLTA_FILES)
EndIf
For $b = 1 To $files[0] Step 1
If FileExists($aCmdLine[$i] & "\" & $files[$b] & ":Zone.Identifier") Then
ConsoleWrite ( "Unblocking file " & $aCmdLine[$i] & "\" & $files[$b] & @CRLF )
_WinAPI_DeleteFile($aCmdLine[$i] & "\" & $files[$b] & ":Zone.Identifier:$DATA")
Else
ContinueLoop
EndIf
Next
Else
If FileExists($aCmdLine[$i] & ":Zone.Identifier") Then
ConsoleWrite ( "Unblocking file " & $aCmdLine[$i] & @CRLF )
_WinAPI_DeleteFile($aCmdLine[$i] & ":Zone.Identifier:$DATA")
Else
ContinueLoop
EndIf
EndIf
Next
ConsoleWrite ( "DONE" & @CRLF )
EndIf
Func IsFile($sFilePath)
Return Number(FileExists($sFilePath) And StringInStr(FileGetAttrib($sFilePath), "D", 2, 1) = 0)
EndFunc ;==>IsFile
*Edit 2/3/2017: I updated the code so that, when the powershell method is used, a path that is under "Program files" or "program files (x86)" does not return an error.
**EDIT: The script has been re-written so that it is able to accomplish the same functionality without any prerequisites. Only runs pure AutoIT now. A big thanks to @argumentum for the idea.
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1340656">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1354625"></a>
<article id="elComment_1354625" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break"><span class="useractive">MattHiggs</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354625" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-21T21:16:28Z" title="05/21/2017 09:16 PM" data-short="7 yr">May 21, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break">MattHiggs</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/content/" rel="nofollow" title="605 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 605
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1354625_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1354625"
data-quotedata="{"userid":90048,"username":"MattHiggs","timestamp":1495401388,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1354625}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
<li><strong class="ipsBadge ipsBadge_large ipsComment_authorBadge">Author</strong></li>
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1354625_menu" class="ipsComment_ellipsis" id="elControls_1354625" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1354625_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1354625_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354625" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1354625_menu" data-ipsdialog-title="Share this post" id="elSharePost_1354625" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354625" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-21T21:16:28Z" title="05/21/2017 09:16 PM" data-short="7 yr">May 21, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<p> **Updated. Now allows users to successfully pass environment variables as part of the path specified in the arguments. Also made some changes to improve performance. </p>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1354625_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354625" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354625&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354625" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354625" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354625&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="**Updated. Now allows users to successfully pass environment variables as part of the path specified in the arguments. Also made some changes to improve performance.
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354625">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1354878"></a>
<article id="elComment_1354878" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/75880-chance/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/75880-chance/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to Chance's profile">
<img src="https://www.autoitscript.com/forum/uploads/profile/photo-thumb-75880.jpg" alt="Chance" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/75880-chance/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Prodigy" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Prodigy (4/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/75880-chance/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/75880-chance/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to Chance's profile" class="ipsType_break"><span class="useractive">Chance</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354878" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-23T15:02:46Z" title="05/23/2017 03:02 PM" data-short="7 yr">May 23, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/75880-chance/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/75880-chance/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to Chance's profile" class="ipsType_break">Chance</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/75880-chance/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/75880-chance/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to Chance's profile">
<img src="https://www.autoitscript.com/forum/uploads/profile/photo-thumb-75880.jpg" alt="Chance" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Prodigy" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Prodigy (4/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/75880-chance/content/" rel="nofollow" title="187 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 187
</a>
</li>
<li>
<a href="https://www.autoitscript.com/forum/profile/75880-chance/solutions/" rel="nofollow" title="1 solution" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-check-circle"></i> 1
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1354878_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1354878"
data-quotedata="{"userid":75880,"username":"Chance","timestamp":1495551766,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1354878}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1354878_menu" class="ipsComment_ellipsis" id="elControls_1354878" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1354878_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1354878_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354878" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1354878_menu" data-ipsdialog-title="Share this post" id="elSharePost_1354878" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354878" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-23T15:02:46Z" title="05/23/2017 03:02 PM" data-short="7 yr">May 23, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<p> What exactly do you mean by unblock? </p>
<p> Does this take ownership of files and allow you to delete them when owned by another user or does this literally remove locks on files when held by another process, such as when <abbr
title="AutoIt Editor (SCIntilla based Text Editor)">scite</abbr> has a lock on the parent folder of the open script and does nto allow you to delete it until the process is closed </p>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1354878_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354878" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354878&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354878" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354878" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354878&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="What exactly do you mean by unblock?
Does this take ownership of files and allow you to delete them when owned by another user or does this literally remove locks on files when held by another process, such as when scite has a lock on the parent folder of the open script and does nto allow you to delete it until the process is closed
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354878">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1354939"></a>
<article id="elComment_1354939" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break"><span class="useractive">MattHiggs</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354939" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-23T22:56:35Z" title="05/23/2017 10:56 PM" data-short="7 yr">May 23, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break">MattHiggs</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/content/" rel="nofollow" title="605 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 605
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1354939_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1354939"
data-quotedata="{"userid":90048,"username":"MattHiggs","timestamp":1495580195,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1354939}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
<li><strong class="ipsBadge ipsBadge_large ipsComment_authorBadge">Author</strong></li>
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1354939_menu" class="ipsComment_ellipsis" id="elControls_1354939" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1354939_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1354939_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354939" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1354939_menu" data-ipsdialog-title="Share this post" id="elSharePost_1354939" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354939" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-23T22:56:35Z" title="05/23/2017 10:56 PM" data-short="7 yr">May 23, 2017</time></a>
<span class="ipsResponsive_hidePhone"> (edited) </span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages" id="ips_uid_8568_3">
<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="1354878" data-ipsquote-contentid="186690" data-ipsquote-contenttype="forums"
data-ipsquote-timestamp="1495551766" data-ipsquote-userid="75880" data-ipsquote-username="Chance" id="ips_uid_8568_4">
<div class="ipsQuote_citation ipsQuote_open"> <a href="#" data-action="toggleQuote"> </a>
<a class="ipsPos_right" href="//www.autoitscript.com/forum/?app=core&module=system&controller=content&do=find&content_class=forums_Topic&content_id=186690&content_commentid=1354878"><i class="fa fa-share"></i></a>
On 5/23/2017 at 5:02 AM,
<a href="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=75880" data-ipshover="" data-ipshover-target="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=75880&do=hovercard">Chance</a>
said: </div>
<div class="ipsQuote_contents ipsClearfix" data-ipstruncate="true" data-ipstruncate-type="hide" data-ipstruncate-size="7 lines" data-ipstruncate-expandtext="Expand">
<p> What exactly do you mean by unblock? </p>
<p> Does this take ownership of files and allow you to delete them when owned by another user or does this literally remove locks on files when held by another process, such as when <abbr
title="AutoIt Editor (SCIntilla based Text Editor)">scite</abbr> has a lock on the parent folder of the open script and does nto allow you to delete it until the process is closed </p>
</div>
</blockquote>
<p> Hello Sir. No. This script will allow you to eliminate occurrences like these: </p>
<p>
<a href="https://www.autoitscript.com/forum/applications/sslimageproxy/interface/image.php?url=http://thewindowsclub.thewindowsclubco.netdna-cdn.com/wp-content/uploads/2012/08/unblock.jpg" title="Enlarge image" data-fileid="undefined" data-wrappedlink="" data-ipslightbox="" data-ipslightbox-group="undefined"><img alt="unblock.jpg" class="ipsImage ipsImage_thumbnailed" src="https://www.autoitscript.com/forum/applications/sslimageproxy/interface/image.php?url=http://thewindowsclub.thewindowsclubco.netdna-cdn.com/wp-content/uploads/2012/08/unblock.jpg"></a>
</p>
<p> When this property is set on a file (usually when a file is downloaded from the internet), you will encounter the following when trying to run it: </p>
<p>
<a href="https://www.sevenforums.com/attachments/tutorials/113486d1289590705-open-file-security-warning-unblock-file-step1-b.jpg" title="Enlarge image" data-fileid="undefined" data-wrappedlink="" data-ipslightbox="" data-ipslightbox-group="undefined"><img alt="113486d1289590705-open-file-security-war" class="ipsImage ipsImage_thumbnailed" src="https://www.sevenforums.com/attachments/tutorials/113486d1289590705-open-file-security-warning-unblock-file-step1-b.jpg"></a>
</p>
<p> For example, say you download a powershell script from Microsoft's script repository (let
say <a href="https://gallery.technet.microsoft.com/scriptcenter/Get-RemoteProgram-Get-list-de9fd2b4" rel="external nofollow noopener" target="_blank">this one for example.</a>) When you download it, you can verify by right
clicking the file, selecting properties, and looking at the security attribute that the file is blocked. If you try to utilize this script (the example has to be "dot sourced" first, which basically means you type in ".
Path\to\script\script.ps1" into powershell console) without first unblocking the file, the below prompt will appear every time: </p>
<p>
<a class="ipsAttachLink ipsAttachLink_image" data-fileid="54571" href="https://www.autoitscript.com/forum/uploads/monthly_2017_05/dVDTrgY.png.82254802085f258c2818dee0deefcdf0.png" rel="" data-fullurl="https://www.autoitscript.com/forum/uploads/monthly_2017_05/dVDTrgY.png.82254802085f258c2818dee0deefcdf0.png" data-ipslightbox="" data-ipslightbox-group="g6785"><img alt="dVDTrgY.png" class="ipsImage ipsImage_thumbnailed" data-fileid="54571" src="https://www.autoitscript.com/forum/uploads/monthly_2017_05/dVDTrgY.thumb.png.41f6c6008618dd3cffe6499ec03a11a8.png"></a>
</p>
<p> Which, if you are trying to automate a process, will kind of get in the way of that. The script I have provided will remove the blocked status from the files which are passed to it in the command line, thus removing the extra
prompt that appears before executing. </p>
<span class="ipsType_reset ipsType_medium ipsType_light" data-excludequote="">
<strong>Edited <time datetime="2017-05-23T22:58:25Z" title="05/23/2017 10:58 PM" data-short="7 yr">May 23, 2017</time> by MattHiggs</strong>
</span>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1354939_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354939" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354939&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354939" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354939" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354939&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="Hello Sir. No. This script will allow you to eliminate occurrences like these:
When this property is set on a file (usually when a file is downloaded from the internet), you will encounter the following when trying to run it:
For example, say you download a powershell script from Microsoft's script repository (let say this one for example.) When you download it, you can verify by right clicking the file, selecting properties, and looking at the security attribute that the file is blocked. If you try to utilize this script (the example has to be "dot sourced" first, which basically means you type in ". Path\to\script\script.ps1" into powershell console) without first unblocking the file, the below prompt will appear every time:
Which, if you are trying to automate a process, will kind of get in the way of that. The script I have provided will remove the blocked status from the files which are passed to it in the command line, thus removing the extra prompt that appears before executing.
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354939">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1354950"></a>
<article id="elComment_1354950" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/58912-brewmannh/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to BrewManNH's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2015_08/KingBob.jpg.c8c9b397c98b89e2146cf0eef852aa10.thumb.jpg.298a901ee52b7a54ef0c675044c57767.jpg" alt="BrewManNH" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/58912-brewmannh/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to BrewManNH's profile" class="ipsType_break"><span class="usermvp">BrewManNH</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354950" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-24T02:18:54Z" title="05/24/2017 02:18 AM" data-short="7 yr">May 24, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/58912-brewmannh/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to BrewManNH's profile" class="ipsType_break">BrewManNH</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/58912-brewmannh/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to BrewManNH's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2015_08/KingBob.jpg.c8c9b397c98b89e2146cf0eef852aa10.thumb.jpg.298a901ee52b7a54ef0c675044c57767.jpg" alt="BrewManNH" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="usermvp">MVPs</span></li>
<li data-role="group-icon"><img src="https://www.autoitscript.com/forum/uploads/monthly_2015_07/team_mvp.png.06ed2c34c6eb9c9c23af5b7693950853.png" alt="" class="cAuthorGroupIcon"></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/content/" rel="nofollow" title="14,148 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 14.1k
</a>
</li>
<li>
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/solutions/" rel="nofollow" title="216 solutions" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-check-circle"></i> 216
</a>
</li>
</ul>
</li>
<li data-role="custom-field" class="ipsResponsive_hidePhone ipsType_break"> Laus Deo </li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1354950_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1354950"
data-quotedata="{"userid":58912,"username":"BrewManNH","timestamp":1495592334,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1354950}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1354950_menu" class="ipsComment_ellipsis" id="elControls_1354950" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1354950_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1354950_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354950" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1354950_menu" data-ipsdialog-title="Share this post" id="elSharePost_1354950" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354950" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-24T02:18:54Z" title="05/24/2017 02:18 AM" data-short="7 yr">May 24, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<p> There's a PS cmdlet that does the same thing without having to download anything, use <strong>Unblock-File -Path <em><filepath\filename></em></strong>
</p>
</div>
<div data-role="memberSignature" class=" ipsBorder_top ipsPadding_vertical">
<div class="ipsType_light ipsType_richText" data-ipslazyload="">
<p style="text-align:center;"><span style="color:#A9A9A9;"><span style="font-size:9px;"><strong>If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP
I can't help with that because I don't have access to XP, and I'm not going to.</strong></span></span><br><span style="font-size:11px;"><span style="color:#ff0000;"><strong>Give a programmer the correct code and he can do his
work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude</strong></span></span><br><span
style="font-size:20px;"><strong><a rel="external nofollow noopener" href="http://catb.org/~esr/faqs/smart-questions.html" target="_blank">How to ask questions the smart way!</a></strong></span></p>
<blockquote data-ipsspoiler="" class="ipsStyle_spoiler">
<div class="ipsSpoiler_header ipsSpoiler_closed"> <a href="#" data-action="toggleSpoiler"> </a> <span>Reveal hidden contents</span> </div>
<p style="text-align: center; display: none;"><span style="color:rgb(0,128,0);"><em><strong><span style="font-size:12px;">I hereby grant any person the right to use any code I post, that I am the original author of, on the
autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.</span></strong></em></span></p>
<p style="display: none;"><span
style="font-size:10px;"><a href="https://www.autoitscript.com/forum/topic/125610-windows-user-files-back-up-and-restore/"><span style="color:rgb(255,0,0);">Back up and restore Windows user files</span></a>
<a href="https://www.autoitscript.com/forum/topic/131676-modified-version-of-the-standard-arrayau3-include-file/"><span style="color:rgb(255,0,0);">_Array.au3</span></a> - Modified array functions that include support for 2D
arrays. - <a href="https://www.autoitscript.com/forum/topic/140863-scite-colour-chooser/"><span style="color:rgb(255,0,0);">ColorChooser</span></a> - An add-on for <abbr
title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr
title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)">SciTE</abbr></abbr></abbr></abbr></abbr></abbr> that
pops up a color dialog so you can select and paste a color code into a script. -
<a href="https://www.autoitscript.com/forum/topic/128365-customizable-splash-screen-gui-with-progress-bar"><span style="color:rgb(255,0,0);">Customizable Splashscreen GUI w/Progress Bar</span></a> - Create a custom "splash
screen" GUI with a progress bar and custom label. - <a href="https://www.autoitscript.com/forum/index.php?showtopic=148232"><span style="color:rgb(255,0,0);">_FileGetProperty</span></a> - Retrieve the properties of a
file -
<a href="https://www.autoitscript.com/forum/topic/149629-scite-toolbar"><span style="color:rgb(255,0,0);"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)">SciTE</abbr></abbr></abbr></abbr></abbr></abbr> Toolbar</span></a>
- A toolbar demo for use with the <abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr
title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)">SciTE</abbr></abbr></abbr></abbr></abbr></abbr> editor
- <a href="https://www.autoitscript.com/forum/topic/134878-guiregistermsg-replacement-for-guictrlsetonevent-and-guigetmsg/"><span style="color:rgb(255,0,0);">GUIRegisterMsg demo</span></a> - Demo script to show how to
use the Windows messages to interact with controls and your GUI. -
<a href="https://www.autoitscript.com/forum/index.php?showtopic=138030"><span style="color:#FF0000;"> Latin Square password generator</span></a></span></p>
</blockquote>
</div>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1354950_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354950" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354950&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354950" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354950" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354950&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="There's a PS cmdlet that does the same thing without having to download anything, use Unblock-File -Path <filepath\filename>
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354950">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1354961"></a>
<article id="elComment_1354961" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break"><span class="useractive">MattHiggs</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354961" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-24T03:22:11Z" title="05/24/2017 03:22 AM" data-short="7 yr">May 24, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break">MattHiggs</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/content/" rel="nofollow" title="605 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 605
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1354961_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1354961"
data-quotedata="{"userid":90048,"username":"MattHiggs","timestamp":1495596131,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1354961}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
<li><strong class="ipsBadge ipsBadge_large ipsComment_authorBadge">Author</strong></li>
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1354961_menu" class="ipsComment_ellipsis" id="elControls_1354961" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1354961_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1354961_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354961" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1354961_menu" data-ipsdialog-title="Share this post" id="elSharePost_1354961" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354961" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-24T03:22:11Z" title="05/24/2017 03:22 AM" data-short="7 yr">May 24, 2017</time></a>
<span class="ipsResponsive_hidePhone"> (edited) </span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="1354950" data-ipsquote-contentid="186690" data-ipsquote-contenttype="forums"
data-ipsquote-timestamp="1495592334" data-ipsquote-userid="58912" data-ipsquote-username="BrewManNH" id="ips_uid_8568_5">
<div class="ipsQuote_citation ipsQuote_open"> <a href="#" data-action="toggleQuote"> </a>
<a class="ipsPos_right" href="//www.autoitscript.com/forum/?app=core&module=system&controller=content&do=find&content_class=forums_Topic&content_id=186690&content_commentid=1354950"><i class="fa fa-share"></i></a>
On 5/23/2017 at 4:18 PM,
<a href="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=58912" data-ipshover="" data-ipshover-target="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=58912&do=hovercard">BrewManNH</a>
said: </div>
<div class="ipsQuote_contents ipsClearfix" data-ipstruncate="true" data-ipstruncate-type="hide" data-ipstruncate-size="7 lines" data-ipstruncate-expandtext="Expand">
<p> There's a PS cmdlet that does the same thing without having to download anything, use <strong>Unblock-File -Path <em><filepath\filename></em></strong>
</p>
</div>
</blockquote>
<p> You should take a look at the description/script source....<img alt=":mellow:" data-emoticon="" height="20" src="https://www.autoitscript.com/forum/uploads/emoticons/default_mellow.png.11111111111111111111111111111111.png"
srcset="https://www.autoitscript.com/forum/uploads/emoticons/mellow@2x.png 2x" title=":mellow:" width="20"><img alt=":mellow:" data-emoticon="" height="20"
src="https://www.autoitscript.com/forum/uploads/emoticons/default_mellow.png.11111111111111111111111111111111.png" srcset="https://www.autoitscript.com/forum/uploads/emoticons/mellow@2x.png 2x" title=":mellow:" width="20"><img
alt=":mellow:" data-emoticon="" height="20" src="https://www.autoitscript.com/forum/uploads/emoticons/default_mellow.png.11111111111111111111111111111111.png"
srcset="https://www.autoitscript.com/forum/uploads/emoticons/mellow@2x.png 2x" title=":mellow:" width="20"></p>
<span class="ipsType_reset ipsType_medium ipsType_light" data-excludequote="">
<strong>Edited <time datetime="2017-05-24T03:23:11Z" title="05/24/2017 03:23 AM" data-short="7 yr">May 24, 2017</time> by MattHiggs</strong>
</span>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1354961_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354961" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354961&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354961" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354961" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1354961&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="You should take a look at the description/script source....
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1354961">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1355006"></a>
<article id="elComment_1355006" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/58912-brewmannh/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to BrewManNH's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2015_08/KingBob.jpg.c8c9b397c98b89e2146cf0eef852aa10.thumb.jpg.298a901ee52b7a54ef0c675044c57767.jpg" alt="BrewManNH" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/58912-brewmannh/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to BrewManNH's profile" class="ipsType_break"><span class="usermvp">BrewManNH</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355006" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-24T14:05:47Z" title="05/24/2017 02:05 PM" data-short="7 yr">May 24, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/58912-brewmannh/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to BrewManNH's profile" class="ipsType_break">BrewManNH</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/58912-brewmannh/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to BrewManNH's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2015_08/KingBob.jpg.c8c9b397c98b89e2146cf0eef852aa10.thumb.jpg.298a901ee52b7a54ef0c675044c57767.jpg" alt="BrewManNH" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="usermvp">MVPs</span></li>
<li data-role="group-icon"><img src="https://www.autoitscript.com/forum/uploads/monthly_2015_07/team_mvp.png.06ed2c34c6eb9c9c23af5b7693950853.png" alt="" class="cAuthorGroupIcon"></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/content/" rel="nofollow" title="14,148 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 14.1k
</a>
</li>
<li>
<a href="https://www.autoitscript.com/forum/profile/58912-brewmannh/solutions/" rel="nofollow" title="216 solutions" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-check-circle"></i> 216
</a>
</li>
</ul>
</li>
<li data-role="custom-field" class="ipsResponsive_hidePhone ipsType_break"> Laus Deo </li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1355006_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1355006"
data-quotedata="{"userid":58912,"username":"BrewManNH","timestamp":1495634747,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1355006}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1355006_menu" class="ipsComment_ellipsis" id="elControls_1355006" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1355006_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1355006_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355006" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1355006_menu" data-ipsdialog-title="Share this post" id="elSharePost_1355006" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355006" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-24T14:05:47Z" title="05/24/2017 02:05 PM" data-short="7 yr">May 24, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<p> My bad, didn't read far enough into the script. </p>
</div>
<div data-role="memberSignature" class=" ipsBorder_top ipsPadding_vertical">
<div class="ipsType_light ipsType_richText" data-ipslazyload="">
<p style="text-align:center;"><span style="color:#A9A9A9;"><span style="font-size:9px;"><strong>If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP
I can't help with that because I don't have access to XP, and I'm not going to.</strong></span></span><br><span style="font-size:11px;"><span style="color:#ff0000;"><strong>Give a programmer the correct code and he can do his
work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude</strong></span></span><br><span
style="font-size:20px;"><strong><a rel="external nofollow noopener" href="http://catb.org/~esr/faqs/smart-questions.html" target="_blank">How to ask questions the smart way!</a></strong></span></p>
<blockquote data-ipsspoiler="" class="ipsStyle_spoiler">
<div class="ipsSpoiler_header ipsSpoiler_closed"> <a href="#" data-action="toggleSpoiler"> </a> <span>Reveal hidden contents</span> </div>
<p style="text-align: center; display: none;"><span style="color:rgb(0,128,0);"><em><strong><span style="font-size:12px;">I hereby grant any person the right to use any code I post, that I am the original author of, on the
autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.</span></strong></em></span></p>
<p style="display: none;"><span
style="font-size:10px;"><a href="https://www.autoitscript.com/forum/topic/125610-windows-user-files-back-up-and-restore/"><span style="color:rgb(255,0,0);">Back up and restore Windows user files</span></a>
<a href="https://www.autoitscript.com/forum/topic/131676-modified-version-of-the-standard-arrayau3-include-file/"><span style="color:rgb(255,0,0);">_Array.au3</span></a> - Modified array functions that include support for 2D
arrays. - <a href="https://www.autoitscript.com/forum/topic/140863-scite-colour-chooser/"><span style="color:rgb(255,0,0);">ColorChooser</span></a> - An add-on for <abbr
title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr
title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)">SciTE</abbr></abbr></abbr></abbr></abbr></abbr> that
pops up a color dialog so you can select and paste a color code into a script. -
<a href="https://www.autoitscript.com/forum/topic/128365-customizable-splash-screen-gui-with-progress-bar"><span style="color:rgb(255,0,0);">Customizable Splashscreen GUI w/Progress Bar</span></a> - Create a custom "splash
screen" GUI with a progress bar and custom label. - <a href="https://www.autoitscript.com/forum/index.php?showtopic=148232"><span style="color:rgb(255,0,0);">_FileGetProperty</span></a> - Retrieve the properties of a
file -
<a href="https://www.autoitscript.com/forum/topic/149629-scite-toolbar"><span style="color:rgb(255,0,0);"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)">SciTE</abbr></abbr></abbr></abbr></abbr></abbr> Toolbar</span></a>
- A toolbar demo for use with the <abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr
title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)"><abbr title="AutoIt Editor (SCIntilla based Text Editor)">SciTE</abbr></abbr></abbr></abbr></abbr></abbr> editor
- <a href="https://www.autoitscript.com/forum/topic/134878-guiregistermsg-replacement-for-guictrlsetonevent-and-guigetmsg/"><span style="color:rgb(255,0,0);">GUIRegisterMsg demo</span></a> - Demo script to show how to
use the Windows messages to interact with controls and your GUI. -
<a href="https://www.autoitscript.com/forum/index.php?showtopic=138030"><span style="color:#FF0000;"> Latin Square password generator</span></a></span></p>
</blockquote>
</div>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1355006_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355006" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355006&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355006" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355006" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355006&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="My bad, didn't read far enough into the script.
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355006">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1355079"></a>
<article id="elComment_1355079" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break"><span class="useractive">MattHiggs</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355079" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-24T22:24:43Z" title="05/24/2017 10:24 PM" data-short="7 yr">May 24, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break">MattHiggs</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/content/" rel="nofollow" title="605 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 605
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1355079_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1355079"
data-quotedata="{"userid":90048,"username":"MattHiggs","timestamp":1495664683,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1355079}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
<li><strong class="ipsBadge ipsBadge_large ipsComment_authorBadge">Author</strong></li>
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1355079_menu" class="ipsComment_ellipsis" id="elControls_1355079" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1355079_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1355079_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355079" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1355079_menu" data-ipsdialog-title="Share this post" id="elSharePost_1355079" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355079" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-24T22:24:43Z" title="05/24/2017 10:24 PM" data-short="7 yr">May 24, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="1355006" data-ipsquote-contentid="186690" data-ipsquote-contenttype="forums"
data-ipsquote-timestamp="1495634747" data-ipsquote-userid="58912" data-ipsquote-username="BrewManNH" id="ips_uid_8568_6">
<div class="ipsQuote_citation ipsQuote_open"> <a href="#" data-action="toggleQuote"> </a>
<a class="ipsPos_right" href="//www.autoitscript.com/forum/?app=core&module=system&controller=content&do=find&content_class=forums_Topic&content_id=186690&content_commentid=1355006"><i class="fa fa-share"></i></a>
On 5/24/2017 at 4:05 AM,
<a href="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=58912" data-ipshover="" data-ipshover-target="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=58912&do=hovercard">BrewManNH</a>
said: </div>
<div class="ipsQuote_contents ipsClearfix" data-ipstruncate="true" data-ipstruncate-type="hide" data-ipstruncate-size="7 lines" data-ipstruncate-expandtext="Expand">
<p> My bad, didn't read far enough into the script. </p>
</div>
</blockquote>
<p> No worries dude... I would be lying if I said I wasn't guilty of the same, lol. </p>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1355079_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355079" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355079&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355079" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355079" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355079&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="No worries dude... I would be lying if I said I wasn't guilty of the same, lol.
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355079">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1355093"></a>
<article id="elComment_1355093" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/75880-chance/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/75880-chance/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to Chance's profile">
<img src="https://www.autoitscript.com/forum/uploads/profile/photo-thumb-75880.jpg" alt="Chance" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/75880-chance/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Prodigy" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Prodigy (4/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/75880-chance/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/75880-chance/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to Chance's profile" class="ipsType_break"><span class="useractive">Chance</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355093" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-25T06:52:35Z" title="05/25/2017 06:52 AM" data-short="7 yr">May 25, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/75880-chance/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/75880-chance/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to Chance's profile" class="ipsType_break">Chance</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/75880-chance/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/75880-chance/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to Chance's profile">
<img src="https://www.autoitscript.com/forum/uploads/profile/photo-thumb-75880.jpg" alt="Chance" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Prodigy" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Prodigy (4/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/75880-chance/content/" rel="nofollow" title="187 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 187
</a>
</li>
<li>
<a href="https://www.autoitscript.com/forum/profile/75880-chance/solutions/" rel="nofollow" title="1 solution" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-check-circle"></i> 1
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1355093_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1355093"
data-quotedata="{"userid":75880,"username":"Chance","timestamp":1495695155,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1355093}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1355093_menu" class="ipsComment_ellipsis" id="elControls_1355093" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1355093_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1355093_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355093" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1355093_menu" data-ipsdialog-title="Share this post" id="elSharePost_1355093" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355093" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-25T06:52:35Z" title="05/25/2017 06:52 AM" data-short="7 yr">May 25, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<p> oh snap, I see now. This is useful when you download a project and keep getting that dumb untrusted warning. </p>
<p> </p>
<p> Thanks </p>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1355093_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355093" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355093&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355093" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355093" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355093&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="oh snap, I see now. This is useful when you download a project and keep getting that dumb untrusted warning.
Thanks
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355093">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1355135"></a>
<article id="elComment_1355135" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break"><span class="useractive">MattHiggs</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355135" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-25T17:02:56Z" title="05/25/2017 05:02 PM" data-short="7 yr">May 25, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break">MattHiggs</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/content/" rel="nofollow" title="605 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 605
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1355135_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1355135"
data-quotedata="{"userid":90048,"username":"MattHiggs","timestamp":1495731776,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1355135}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
<li><strong class="ipsBadge ipsBadge_large ipsComment_authorBadge">Author</strong></li>
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1355135_menu" class="ipsComment_ellipsis" id="elControls_1355135" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1355135_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1355135_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355135" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1355135_menu" data-ipsdialog-title="Share this post" id="elSharePost_1355135" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355135" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-05-25T17:02:56Z" title="05/25/2017 05:02 PM" data-short="7 yr">May 25, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="1355093" data-ipsquote-contentid="186690" data-ipsquote-contenttype="forums"
data-ipsquote-timestamp="1495695155" data-ipsquote-userid="75880" data-ipsquote-username="Chance" id="ips_uid_8568_7">
<div class="ipsQuote_citation ipsQuote_open"> <a href="#" data-action="toggleQuote"> </a>
<a class="ipsPos_right" href="//www.autoitscript.com/forum/?app=core&module=system&controller=content&do=find&content_class=forums_Topic&content_id=186690&content_commentid=1355093"><i class="fa fa-share"></i></a>
On 5/24/2017 at 8:52 PM,
<a href="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=75880" data-ipshover="" data-ipshover-target="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=75880&do=hovercard">Chance</a>
said: </div>
<div class="ipsQuote_contents ipsClearfix" data-ipstruncate="true" data-ipstruncate-type="hide" data-ipstruncate-size="7 lines" data-ipstruncate-expandtext="Expand">
<p> oh snap, I see now. This is useful when you download a project and keep getting that dumb untrusted warning. </p>
<p> </p>
<p> Thanks </p>
</div>
</blockquote>
<p> Exactly.. </p>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1355135_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355135" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355135&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355135" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355135" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355135&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="Exactly..
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355135">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1355811"></a>
<article id="elComment_1355811" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/4574-argumentum/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/4574-argumentum/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to argumentum's profile">
<img src="https://www.autoitscript.com/forum/uploads/profile/photo-thumb-4574.png" alt="argumentum" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/4574-argumentum/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/4574-argumentum/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/4574-argumentum/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to argumentum's profile" class="ipsType_break"><span class="usermvp">argumentum</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355811" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-01T00:44:16Z" title="06/01/2017 12:44 AM" data-short="7 yr">June 1, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/4574-argumentum/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/4574-argumentum/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to argumentum's profile" class="ipsType_break">argumentum</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/4574-argumentum/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/4574-argumentum/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to argumentum's profile">
<img src="https://www.autoitscript.com/forum/uploads/profile/photo-thumb-4574.png" alt="argumentum" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="usermvp">MVPs</span></li>
<li data-role="group-icon"><img src="https://www.autoitscript.com/forum/uploads/monthly_2015_07/team_mvp.png.06ed2c34c6eb9c9c23af5b7693950853.png" alt="" class="cAuthorGroupIcon"></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/4574-argumentum/content/" rel="nofollow" title="3,970 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 4k
</a>
</li>
<li>
<a href="https://www.autoitscript.com/forum/profile/4574-argumentum/solutions/" rel="nofollow" title="39 solutions" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-check-circle"></i> 39
</a>
</li>
</ul>
</li>
<li data-role="custom-field" class="ipsResponsive_hidePhone ipsType_break"> ✨Universalist ✨ </li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1355811_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1355811"
data-quotedata="{"userid":4574,"username":"argumentum","timestamp":1496277856,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1355811}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1355811_menu" class="ipsComment_ellipsis" id="elControls_1355811" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1355811_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1355811_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355811" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1355811_menu" data-ipsdialog-title="Share this post" id="elSharePost_1355811" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355811" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-01T00:44:16Z" title="06/01/2017 12:44 AM" data-short="7 yr">June 1, 2017</time></a>
<span class="ipsResponsive_hidePhone"> (edited) </span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<p> why not just: </p>
<pre class="geshi geshiprinted lang-autoit ipsCode"><a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"><span class="kw3">FileExists</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="br0">)</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/functions/FileClose.htm"><span class="kw3">FileClose</span></a><span class="br0">(</span><a href="https://www.autoitscript.com/autoit3/docs/functions/FileOpen.htm"><span class="kw3">FileOpen</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"><span class="kw3">FileWrite</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="sy0">,</span> <span class="st0">"[ZoneTransfer]"</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <span class="st0">"ZoneId=0"</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a><span class="br0">)</span> <span class="co1">; ZoneId=5 would work too</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a></pre>
<p> not as clean but it'd solve the problem without the prerequisites. </p>
<p> Thanks for sharing
<a contenteditable="false" data-ipshover="" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" data-mentionid="90048" href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="">@MattHiggs</a>
</p>
<p> </p>
<p> Edit: Found a way to delete the stream </p>
<pre class="geshi geshiprinted lang-autoit ipsCode"><a href="https://www.autoitscript.com/autoit3/docs/keywords/include.htm"><span class="kw8">#include</span></a><span class="co0"> <WinAPIFiles.au3></span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"><span class="kw3">FileExists</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="br0">)</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<span class="sy1">_</span>WinAPI<span class="sy1">_</span>DeleteFile<span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier:$DATA"</span><span class="br0">)</span> <span class="co1">; this will remove the stream</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a></pre>
<p>
<img alt=":)" data-emoticon="" height="20" src="https://www.autoitscript.com/forum/uploads/emoticons/default_smile.png.11111111111111111111111111111111.png" srcset="https://www.autoitscript.com/forum/uploads/emoticons/smile@2x.png 2x"
title=":)" width="20">
</p>
<span class="ipsType_reset ipsType_medium ipsType_light" data-excludequote="">
<strong>Edited <time datetime="2017-06-01T02:37:17Z" title="06/01/2017 02:37 AM" data-short="7 yr">June 1, 2017</time> by argumentum</strong>
</span>
</div>
<div data-role="memberSignature" class=" ipsBorder_top ipsPadding_vertical">
<div class="ipsType_light ipsType_richText" data-ipslazyload="">
<p style="text-align:center;"> Follow the <a href="https://www.autoitscript.com/forum/profile/4574-argumentum/?tab=field_core_pfield_11" rel="">link to my code contribution</a> ( and other things too ).<br>
<span>FAQ - <a href="https://www.autoitscript.com/forum/index.php?showtopic=110993&view=findpost&p=1405467" rel="">Please Read Before Posting</a>.</span><br>
<img alt="autoit_scripter_blue_userbar.png" class="ipsImage" data-ratio="5.43" style="color:rgb(216,216,216);line-height:22.4px;background-color:rgb(53,53,53);" width="350"
src="https://www.autoitscript.com/autoit3/files/graphics/autoit_scripter_blue_userbar.png">
</p>
</div>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1355811_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355811" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355811&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355811" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355811" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355811&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="why not just:
If FileExists($sFile & ":Zone.Identifier") Then
FileClose(FileOpen($sFile & ":Zone.Identifier", 2))
FileWrite($sFile & ":Zone.Identifier", "[ZoneTransfer]" & @CRLF & "ZoneId=0" & @CRLF) ; ZoneId=5 would work too
EndIf
not as clean but it'd solve the problem without the prerequisites.
Thanks for sharing @MattHiggs
Edit: Found a way to delete the stream
#include <WinAPIFiles.au3>
If FileExists($sFile & ":Zone.Identifier") Then
_WinAPI_DeleteFile($sFile & ":Zone.Identifier:$DATA") ; this will remove the stream
EndIf
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355811">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1355951"></a>
<article id="elComment_1355951" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break"><span class="useractive">MattHiggs</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355951" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-01T18:02:29Z" title="06/01/2017 06:02 PM" data-short="7 yr">June 1, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break">MattHiggs</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/content/" rel="nofollow" title="605 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 605
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1355951_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1355951"
data-quotedata="{"userid":90048,"username":"MattHiggs","timestamp":1496340149,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1355951}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
<li><strong class="ipsBadge ipsBadge_large ipsComment_authorBadge">Author</strong></li>
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1355951_menu" class="ipsComment_ellipsis" id="elControls_1355951" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1355951_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1355951_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355951" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1355951_menu" data-ipsdialog-title="Share this post" id="elSharePost_1355951" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355951" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-01T18:02:29Z" title="06/01/2017 06:02 PM" data-short="7 yr">June 1, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="1355811" data-ipsquote-contentid="186690" data-ipsquote-contenttype="forums"
data-ipsquote-timestamp="1496277856" data-ipsquote-userid="4574" data-ipsquote-username="argumentum" id="ips_uid_8568_8">
<div class="ipsQuote_citation ipsQuote_open"> <a href="#" data-action="toggleQuote"> </a>
<a class="ipsPos_right" href="//www.autoitscript.com/forum/?app=core&module=system&controller=content&do=find&content_class=forums_Topic&content_id=186690&content_commentid=1355811"><i class="fa fa-share"></i></a>
On 5/31/2017 at 2:44 PM,
<a href="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=4574" data-ipshover="" data-ipshover-target="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=4574&do=hovercard">argumentum</a>
said: </div>
<div class="ipsQuote_contents ipsClearfix ipsTruncate" data-ipstruncate="true" data-ipstruncate-type="hide" data-ipstruncate-size="7 lines" data-ipstruncate-expandtext="Expand" data-truncated="true"
style="position: relative; height: 156.8px;">
<p> why not just: </p>
<pre class="geshi geshiprinted lang-autoit ipsCode"><a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"><span class="kw3">FileExists</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="br0">)</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/functions/FileClose.htm"><span class="kw3">FileClose</span></a><span class="br0">(</span><a href="https://www.autoitscript.com/autoit3/docs/functions/FileOpen.htm"><span class="kw3">FileOpen</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"><span class="kw3">FileWrite</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="sy0">,</span> <span class="st0">"[ZoneTransfer]"</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <span class="st0">"ZoneId=0"</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a><span class="br0">)</span> <span class="co1">; ZoneId=5 would work too</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a></pre>
<p> not as clean but it'd solve the problem without the prerequisites. </p>
<p> Thanks for sharing
<a contenteditable="false" data-ipshover="" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" data-mentionid="90048" href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="">@MattHiggs</a>
</p>
<p> </p>
<p> Edit: Found a way to delete the stream </p>
<pre class="geshi geshiprinted lang-autoit ipsCode"><a href="https://www.autoitscript.com/autoit3/docs/keywords/include.htm"><span class="kw8">#include</span></a><span class="co0"> <WinAPIFiles.au3></span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"><span class="kw3">FileExists</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="br0">)</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<span class="sy1">_</span>WinAPI<span class="sy1">_</span>DeleteFile<span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier:$DATA"</span><span class="br0">)</span> <span class="co1">; this will remove the stream</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a></pre>
<p>
<img alt=":)" data-emoticon="" height="20" src="https://www.autoitscript.com/forum/uploads/emoticons/default_smile.png.11111111111111111111111111111111.png"
srcset="https://www.autoitscript.com/forum/uploads/emoticons/smile@2x.png 2x" title=":)" width="20">
</p>
</div> <a class="ipsTruncate_more" data-action="expandTruncate"><span>Expand <i class="fa fa-caret-down"></i></span></a>
</blockquote>
<p> Because I'm not as smart/knowledgeable as you veteran scripters, lol. </p>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1355951_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355951" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355951&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355951" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355951" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355951&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="Because I'm not as smart/knowledgeable as you veteran scripters, lol.
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355951">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1355971"></a>
<article id="elComment_1355971" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break"><span class="useractive">MattHiggs</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355971" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-01T20:24:04Z" title="06/01/2017 08:24 PM" data-short="7 yr">June 1, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break">MattHiggs</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/content/" rel="nofollow" title="605 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 605
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1355971_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1355971"
data-quotedata="{"userid":90048,"username":"MattHiggs","timestamp":1496348644,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1355971}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
<li><strong class="ipsBadge ipsBadge_large ipsComment_authorBadge">Author</strong></li>
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1355971_menu" class="ipsComment_ellipsis" id="elControls_1355971" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1355971_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1355971_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355971" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1355971_menu" data-ipsdialog-title="Share this post" id="elSharePost_1355971" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355971" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-01T20:24:04Z" title="06/01/2017 08:24 PM" data-short="7 yr">June 1, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="1355811" data-ipsquote-contentid="186690" data-ipsquote-contenttype="forums"
data-ipsquote-timestamp="1496277856" data-ipsquote-userid="4574" data-ipsquote-username="argumentum" id="ips_uid_8568_9">
<div class="ipsQuote_citation ipsQuote_open"> <a href="#" data-action="toggleQuote"> </a>
<a class="ipsPos_right" href="//www.autoitscript.com/forum/?app=core&module=system&controller=content&do=find&content_class=forums_Topic&content_id=186690&content_commentid=1355811"><i class="fa fa-share"></i></a>
On 5/31/2017 at 2:44 PM,
<a href="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=4574" data-ipshover="" data-ipshover-target="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=4574&do=hovercard">argumentum</a>
said: </div>
<div class="ipsQuote_contents ipsClearfix ipsTruncate" data-ipstruncate="true" data-ipstruncate-type="hide" data-ipstruncate-size="7 lines" data-ipstruncate-expandtext="Expand" data-truncated="true"
style="position: relative; height: 156.8px;">
<p> why not just: </p>
<pre class="geshi geshiprinted lang-autoit ipsCode"><a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"><span class="kw3">FileExists</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="br0">)</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<a href="https://www.autoitscript.com/autoit3/docs/functions/FileClose.htm"><span class="kw3">FileClose</span></a><span class="br0">(</span><a href="https://www.autoitscript.com/autoit3/docs/functions/FileOpen.htm"><span class="kw3">FileOpen</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="sy0">,</span> <span class="nu0">2</span><span class="br0">)</span><span class="br0">)</span>
<a href="https://www.autoitscript.com/autoit3/docs/functions/FileWrite.htm"><span class="kw3">FileWrite</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="sy0">,</span> <span class="st0">"[ZoneTransfer]"</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a> <span class="sy0">&</span> <span class="st0">"ZoneId=0"</span> <span class="sy0">&</span> <a href="https://www.autoitscript.com/autoit3/docs/macros.htm#%40CRLF"><span class="kw2">@CRLF</span></a><span class="br0">)</span> <span class="co1">; ZoneId=5 would work too</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a></pre>
<p> not as clean but it'd solve the problem without the prerequisites. </p>
<p> Thanks for sharing
<a contenteditable="false" data-ipshover="" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" data-mentionid="90048" href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="">@MattHiggs</a>
</p>
<p> </p>
<p> Edit: Found a way to delete the stream </p>
<pre class="geshi geshiprinted lang-autoit ipsCode"><a href="https://www.autoitscript.com/autoit3/docs/keywords/include.htm"><span class="kw8">#include</span></a><span class="co0"> <WinAPIFiles.au3></span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">If</span></a> <a href="https://www.autoitscript.com/autoit3/docs/functions/FileExists.htm"><span class="kw3">FileExists</span></a><span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier"</span><span class="br0">)</span> <a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">Then</span></a>
<span class="sy1">_</span>WinAPI<span class="sy1">_</span>DeleteFile<span class="br0">(</span><span class="re0">$sFile</span> <span class="sy0">&</span> <span class="st0">":Zone.Identifier:$DATA"</span><span class="br0">)</span> <span class="co1">; this will remove the stream</span>
<a href="https://www.autoitscript.com/autoit3/docs/keywords.htm"><span class="kw1">EndIf</span></a></pre>
<p>
<img alt=":)" data-emoticon="" height="20" src="https://www.autoitscript.com/forum/uploads/emoticons/default_smile.png.11111111111111111111111111111111.png"
srcset="https://www.autoitscript.com/forum/uploads/emoticons/smile@2x.png 2x" title=":)" width="20">
</p>
</div> <a class="ipsTruncate_more" data-action="expandTruncate"><span>Expand <i class="fa fa-caret-down"></i></span></a>
</blockquote>
<p> But the script would be better if it didn't have any prerequisites or dependencies, so I updated the script with the code you provided. You know it's funny, before I began work on this script, I remember doing research in
order to determine how Windows flagged a file as "blocked" in order to be able to accomplish what you just showed me, but came up nil after about 30 minutes so I gave up and settled on using the prerequisite methods. The
script in the main post has been updated. </p>
</div>
<div class="ipsItemControls">
<div data-controller="core.front.core.reaction" class="ipsItemControls_right ipsClearfix ">
<div class="ipsReact ipsPos_right">
<div class="ipsReact_blurb " data-role="reactionBlurb">
<ul class="ipsReact_reactions">
<li class="ipsReact_overview ipsType_blendLinks">
<a href="https://www.autoitscript.com/forum/profile/4574-argumentum/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/4574-argumentum/?do=hovercard" title="Go to argumentum's profile" class="ipsType_break">argumentum</a>
</li>
<li class="ipsReact_reactCount">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=showReactionsComment&comment=1355971&reaction=1" data-ipsdialog="" data-ipsdialog-size="medium" data-ipsdialog-title="See who reacted to this" data-ipstooltip="" data-ipstooltip-label="<strong>Like</strong><br>Loading..." data-ipstooltip-ajax="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=showReactionsComment&comment=1355971&reaction=1&tooltip=1" data-ipstooltip-safe="" title="See who reacted "Like"">
<span>
<img src="https://www.autoitscript.com/forum/uploads/reactions/react_like.png" alt="Like" loading="lazy">
</span>
<span>
1
</span>
</a>
</li>
</ul>
</div>
</div>
</div>
<ul class="ipsComment_controls ipsClearfix ipsItemControls_left" data-role="commentControls">
<li class="ipsHide" data-role="commentLoading">
<span class="ipsLoading ipsLoading_tiny ipsLoading_noAnim"></span>
</li>
</ul>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1355971_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355971" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355971&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355971" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355971" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1355971&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="But the script would be better if it didn't have any prerequisites or dependencies, so I updated the script with the code you provided. You know it's funny, before I began work on this script, I remember doing research in order to determine how Windows flagged a file as "blocked" in order to be able to accomplish what you just showed me, but came up nil after about 30 minutes so I gave up and settled on using the prerequisite methods. The script in the main post has been updated.
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1355971">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1356300"></a>
<article id="elComment_1356300" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/80593-biatu/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to Biatu's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2016_10/14725519_10154105016574385_1511195612006520324_n.jpg.554ddb4f7d3b808917568ff617dfc8fb.thumb.jpg.f695a03169187fae57466f91fabc8ab5.jpg" alt="Biatu" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (6/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/80593-biatu/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to Biatu's profile" class="ipsType_break"><span class="useractive">Biatu</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356300" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-05T18:43:23Z" title="06/05/2017 06:43 PM" data-short="7 yr">June 5, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/80593-biatu/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to Biatu's profile" class="ipsType_break">Biatu</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/80593-biatu/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to Biatu's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2016_10/14725519_10154105016574385_1511195612006520324_n.jpg.554ddb4f7d3b808917568ff617dfc8fb.thumb.jpg.f695a03169187fae57466f91fabc8ab5.jpg" alt="Biatu" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (6/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/content/" rel="nofollow" title="275 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 275
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1356300_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1356300"
data-quotedata="{"userid":80593,"username":"Biatu","timestamp":1496688203,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1356300}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1356300_menu" class="ipsComment_ellipsis" id="elControls_1356300" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1356300_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1356300_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356300" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1356300_menu" data-ipsdialog-title="Share this post" id="elSharePost_1356300" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356300" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-05T18:43:23Z" title="06/05/2017 06:43 PM" data-short="7 yr">June 5, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<p> you can always rewrite _WINAPI_DeleteFIle, extracting only what u need. Basically, that example is just deleting the NTFS Alt Stream. </p>
</div>
<div data-role="memberSignature" class=" ipsBorder_top ipsPadding_vertical">
<div class="ipsType_light ipsType_richText" data-ipslazyload="">
<p> What is what? What<strong> </strong><em>is</em> what. </p>
</div>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1356300_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356300" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356300&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356300" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356300" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356300&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="you can always rewrite _WINAPI_DeleteFIle, extracting only what u need. Basically, that example is just deleting the NTFS Alt Stream.
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356300">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1356318"></a>
<article id="elComment_1356318" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break"><span class="useractive">MattHiggs</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356318" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-06T01:01:20Z" title="06/06/2017 01:01 AM" data-short="7 yr">June 6, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break">MattHiggs</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/content/" rel="nofollow" title="605 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 605
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1356318_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1356318"
data-quotedata="{"userid":90048,"username":"MattHiggs","timestamp":1496710880,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1356318}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
<li><strong class="ipsBadge ipsBadge_large ipsComment_authorBadge">Author</strong></li>
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1356318_menu" class="ipsComment_ellipsis" id="elControls_1356318" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1356318_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1356318_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356318" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1356318_menu" data-ipsdialog-title="Share this post" id="elSharePost_1356318" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356318" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-06T01:01:20Z" title="06/06/2017 01:01 AM" data-short="7 yr">June 6, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="1356300" data-ipsquote-contentid="186690" data-ipsquote-contenttype="forums"
data-ipsquote-timestamp="1496688203" data-ipsquote-userid="80593" data-ipsquote-username="Biatu" id="ips_uid_8568_10">
<div class="ipsQuote_citation ipsQuote_open"> <a href="#" data-action="toggleQuote"> </a>
<a class="ipsPos_right" href="//www.autoitscript.com/forum/?app=core&module=system&controller=content&do=find&content_class=forums_Topic&content_id=186690&content_commentid=1356300"><i class="fa fa-share"></i></a>
On 6/5/2017 at 8:43 AM,
<a href="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=80593" data-ipshover="" data-ipshover-target="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=80593&do=hovercard">Biatu</a>
said: </div>
<div class="ipsQuote_contents ipsClearfix" data-ipstruncate="true" data-ipstruncate-type="hide" data-ipstruncate-size="7 lines" data-ipstruncate-expandtext="Expand">
<p> you can always rewrite _WINAPI_DeleteFIle, extracting only what u need. Basically, that example is just deleting the NTFS Alt Stream. </p>
</div>
</blockquote>
<p> I am not sure what you mean....<img alt=":mellow:" data-emoticon="" height="20" src="https://www.autoitscript.com/forum/uploads/emoticons/default_mellow.png.11111111111111111111111111111111.png"
srcset="https://www.autoitscript.com/forum/uploads/emoticons/mellow@2x.png 2x" title=":mellow:" width="20"><img alt=":mellow:" data-emoticon="" height="20"
src="https://www.autoitscript.com/forum/uploads/emoticons/default_mellow.png.11111111111111111111111111111111.png" srcset="https://www.autoitscript.com/forum/uploads/emoticons/mellow@2x.png 2x" title=":mellow:"
width="20"> I was under the impression that the NTFS Alt Stream is the "flag" which indicates that a file came from the internet and is what "blocks" the file. Therefore, deleting the Alt Stream would unblock the
file, which is the goal. Can you be a bit more detailed in what you mean? Examples? </p>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1356318_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356318" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356318&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356318" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356318" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356318&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="I am not sure what you mean.... I was under the impression that the NTFS Alt Stream is the "flag" which indicates that a file came from the internet and is what "blocks" the file. Therefore, deleting the Alt Stream would unblock the file, which is the goal. Can you be a bit more detailed in what you mean? Examples?
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356318">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1356321"></a>
<article id="elComment_1356321" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/80593-biatu/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to Biatu's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2016_10/14725519_10154105016574385_1511195612006520324_n.jpg.554ddb4f7d3b808917568ff617dfc8fb.thumb.jpg.f695a03169187fae57466f91fabc8ab5.jpg" alt="Biatu" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (6/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/80593-biatu/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to Biatu's profile" class="ipsType_break"><span class="useractive">Biatu</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356321" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-06T02:35:25Z" title="06/06/2017 02:35 AM" data-short="7 yr">June 6, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/80593-biatu/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to Biatu's profile" class="ipsType_break">Biatu</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/80593-biatu/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to Biatu's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2016_10/14725519_10154105016574385_1511195612006520324_n.jpg.554ddb4f7d3b808917568ff617dfc8fb.thumb.jpg.f695a03169187fae57466f91fabc8ab5.jpg" alt="Biatu" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (6/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/80593-biatu/content/" rel="nofollow" title="275 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 275
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1356321_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1356321"
data-quotedata="{"userid":80593,"username":"Biatu","timestamp":1496716525,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1356321}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1356321_menu" class="ipsComment_ellipsis" id="elControls_1356321" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1356321_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1356321_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356321" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1356321_menu" data-ipsdialog-title="Share this post" id="elSharePost_1356321" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356321" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-06T02:35:25Z" title="06/06/2017 02:35 AM" data-short="7 yr">June 6, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<p> Well, you mentioned that you'd prefer not to have any includes. So, just rewrite the function and pull what is needed from _WinAPI_DeleteFile . Ya know?<br><br> And as for Alt Streams...you can store anything in those. Back in the day
viruses could be hidden in them, and could be executed directly. </p>
</div>
<div data-role="memberSignature" class=" ipsBorder_top ipsPadding_vertical">
<div class="ipsType_light ipsType_richText" data-ipslazyload="">
<p> What is what? What<strong> </strong><em>is</em> what. </p>
</div>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1356321_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356321" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356321&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356321" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356321" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356321&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="Well, you mentioned that you'd prefer not to have any includes. So, just rewrite the function and pull what is needed from _WinAPI_DeleteFile . Ya know?
And as for Alt Streams...you can store anything in those. Back in the day viruses could be hidden in them, and could be executed directly.
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356321">More sharing options...</button>
</div>
</div>
</div>
</article>
<a id="comment-1356466"></a>
<article id="elComment_1356466" class="cPost ipsBox ipsResponsive_pull ipsComment ipsComment_parent ipsClearfix ipsClear ipsColumns ipsColumns_noSpacing ipsColumns_collapsePhone ">
<div class="cAuthorPane_mobile ipsResponsive_showPhone">
<div class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/badges/" rel="nofollow">
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px" data-ipstooltip="" title="Rank: Universalist (7/7)">
</a>
</div>
</div>
<div class="cAuthorPane_content">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_break ipsType_blendLinks ipsFlex ipsFlex-ai:center">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break"><span class="useractive">MattHiggs</span></a>
</h3>
<div class="ipsType_light ipsType_reset">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356466" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-06T23:27:27Z" title="06/06/2017 11:27 PM" data-short="7 yr">June 6, 2017</time></a>
</div>
</div>
</div>
<aside class="ipsComment_author cAuthorPane ipsColumn ipsColumn_medium ipsResponsive_hidePhone">
<h3 class="ipsType_sectionHead cAuthorPane_author ipsType_blendLinks ipsType_break"><strong>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard&referrer=https%253A%252F%252Fwww.autoitscript.com%252Fforum%252Ftopic%252F186690-command-line-utility-to-unblock-files%252F" title="Go to MattHiggs's profile" class="ipsType_break">MattHiggs</a></strong>
</h3>
<ul class="cAuthorPane_info ipsList_reset">
<li data-role="photo" class="cAuthorPane_photo">
<div class="cAuthorPane_photoWrap">
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/" rel="nofollow" data-ipshover="" data-ipshover-width="370" data-ipshover-target="https://www.autoitscript.com/forum/profile/90048-matthiggs/?do=hovercard" class="ipsUserPhoto ipsUserPhoto_large" title="Go to MattHiggs's profile">
<img src="https://www.autoitscript.com/forum/uploads/monthly_2017_01/haha.thumb.jpg.104aef0f0fcb8eee2301fafcb9816d3a.jpg" alt="MattHiggs" loading="lazy">
</a>
<img src="https://www.autoitscript.com/forum/uploads/set_resources_21/84c1e40ea0e759e3f1505eb1788ddf3c_default_rank.png" loading="lazy" alt="Universalist" class="cAuthorPane_badge cAuthorPane_badge--rank ipsOutline ipsOutline:2px"
data-ipstooltip="" title="Rank: Universalist (7/7)">
</div>
</li>
<li data-role="group"><span class="useractive">Active Members</span></li>
<li data-role="stats" class="ipsMargin_top">
<ul class="ipsList_reset ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:center ipsGap_row:2 cAuthorPane_stats">
<li>
<a href="https://www.autoitscript.com/forum/profile/90048-matthiggs/content/" rel="nofollow" title="605 posts" data-ipstooltip="" class="ipsType_blendLinks">
<i class="fa fa-comment"></i> 605
</a>
</li>
</ul>
</li>
</ul>
</aside>
<div class="ipsColumn ipsColumn_fluid ipsMargin:none">
<div id="comment-1356466_wrap" data-controller="core.front.core.comment" data-commentapp="forums" data-commenttype="forums" data-commentid="1356466"
data-quotedata="{"userid":90048,"username":"MattHiggs","timestamp":1496791647,"contentapp":"forums","contenttype":"forums","contentid":186690,"contentclass":"forums_Topic","contentcommentid":1356466}"
class="ipsComment_content ipsType_medium">
<div class="ipsComment_meta ipsType_light ipsFlex ipsFlex-ai:center ipsFlex-jc:between ipsFlex-fd:row-reverse">
<div class="ipsType_light ipsType_reset ipsType_blendLinks ipsComment_toolWrap">
<div class="ipsResponsive_hidePhone ipsComment_badges">
<ul class="ipsList_reset ipsFlex ipsFlex-jc:end ipsFlex-fw:wrap ipsGap:2 ipsGap_row:1">
<li><strong class="ipsBadge ipsBadge_large ipsComment_authorBadge">Author</strong></li>
</ul>
</div>
<ul class="ipsList_reset ipsComment_tools">
<li>
<a href="#elControls_1356466_menu" class="ipsComment_ellipsis" id="elControls_1356466" title="More options..." data-ipsmenu="" data-ipsmenu-appendto="#comment-1356466_wrap"><i class="fa fa-ellipsis-h"></i></a>
<ul id="elControls_1356466_menu" class="ipsMenu ipsMenu_narrow ipsHide">
<li class="ipsMenu_item">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356466" rel="nofollow" title="Share this post" data-ipsdialog="" data-ipsdialog-size="narrow" data-ipsdialog-content="#elShareComment_1356466_menu" data-ipsdialog-title="Share this post" id="elSharePost_1356466" data-role="shareComment">Share</a>
</li>
</ul>
</li>
</ul>
</div>
<div class="ipsType_reset ipsResponsive_hidePhone">
<a href="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356466" rel="nofollow" class="ipsType_blendLinks">Posted <time datetime="2017-06-06T23:27:27Z" title="06/06/2017 11:27 PM" data-short="7 yr">June 6, 2017</time></a>
<span class="ipsResponsive_hidePhone">
</span>
</div>
</div>
<div class="cPost_contentWrap">
<div data-role="commentContent" class="ipsType_normal ipsType_richText ipsPadding_bottom ipsContained" data-controller="core.front.core.lightboxedImages">
<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="1356321" data-ipsquote-contentid="186690" data-ipsquote-contenttype="forums"
data-ipsquote-timestamp="1496716525" data-ipsquote-userid="80593" data-ipsquote-username="Biatu" id="ips_uid_8568_11">
<div class="ipsQuote_citation ipsQuote_open"> <a href="#" data-action="toggleQuote"> </a>
<a class="ipsPos_right" href="//www.autoitscript.com/forum/?app=core&module=system&controller=content&do=find&content_class=forums_Topic&content_id=186690&content_commentid=1356321"><i class="fa fa-share"></i></a>
On 6/5/2017 at 4:35 PM,
<a href="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=80593" data-ipshover="" data-ipshover-target="//www.autoitscript.com/forum/?app=core&module=members&controller=profile&id=80593&do=hovercard">Biatu</a>
said: </div>
<div class="ipsQuote_contents ipsClearfix" data-ipstruncate="true" data-ipstruncate-type="hide" data-ipstruncate-size="7 lines" data-ipstruncate-expandtext="Expand">
<p> Well, you mentioned that you'd prefer not to have any includes. So, just rewrite the function and pull what is needed from _WinAPI_DeleteFile . Ya know?<br><br> And as for Alt Streams...you can store anything in those. Back in the
day viruses could be hidden in them, and could be executed directly. </p>
</div>
</blockquote>
<p> Im sorry man. The more you say the more confused I get. What I was probably referring to in regards to not wanting to have any includes is the fact that the first version of this script used powershell if the
version was high enough to contain the "Unblock-file" cmdlet, and if it wasn't, the script would download and use the streams sysinternals tool to delete the alternate streams instead. However, I have since completely
re-written the script so that it no longer requires these external dependencies. As in the script can be run completely standalone. That was the goal, and that has been accomplished. At this point, my interest in
continuing to work on it is non-existent, but you are free to do with it as you like.<img alt=":P" data-emoticon="" height="20"
src="https://www.autoitscript.com/forum/uploads/emoticons/default_tongue.png.11111111111111111111111111111111.png" srcset="https://www.autoitscript.com/forum/uploads/emoticons/tongue@2x.png 2x" title=":P" width="20"></p>
</div>
</div>
<div class="ipsPadding ipsHide cPostShareMenu" id="elShareComment_1356466_menu">
<h5 class="ipsType_normal ipsType_reset">Link to comment</h5>
<input type="text" value="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356466" class="ipsField_fullWidth">
<h5 class="ipsType_normal ipsType_reset ipsSpacer_top">Share on other sites</h5>
<ul class="ipsList_inline ipsList_noSpacing ipsClearfix" data-controller="core.front.core.sharelink">
<li>
<a href="https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356466&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_linkedin" target="_blank" data-role="shareLink" title="Share on LinkedIn" data-ipstooltip="">
<i class="fa fa-linkedin"></i>
</a>
</li>
<li>
<a href="https://twitter.com/share?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356466" class="cShareLink cShareLink_twitter" target="_blank" data-role="shareLink" title="Share on Twitter" data-ipstooltip="" rel="nofollow noopener">
<i class="fa fa-twitter"></i>
</a>
</li>
<li>
<a href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356466" class="cShareLink cShareLink_facebook" target="_blank" data-role="shareLink" title="Share on Facebook" data-ipstooltip="" rel="noopener nofollow">
<i class="fa fa-facebook"></i>
</a>
</li>
<li>
<a href="https://www.reddit.com/submit?url=https%3A%2F%2Fwww.autoitscript.com%2Fforum%2Ftopic%2F186690-command-line-utility-to-unblock-files%2F%3Fdo%3DfindComment%26comment%3D1356466&title=Command+line+utility+to+unblock+files" rel="nofollow noopener" class="cShareLink cShareLink_reddit" target="_blank" title="Share on Reddit" data-ipstooltip="">
<i class="fa fa-reddit"></i>
</a>
</li>
</ul>
<hr class="ipsHr">
<button class="ipsHide ipsButton ipsButton_small ipsButton_light ipsButton_fullWidth ipsMargin_top:half" data-controller="core.front.core.webshare" data-role="webShare" data-websharetitle="Command line utility to unblock files"
data-websharetext="Im sorry man. The more you say the more confused I get. What I was probably referring to in regards to not wanting to have any includes is the fact that the first version of this script used powershell if the version was high enough to contain the "Unblock-file" cmdlet, and if it wasn't, the script would download and use the streams sysinternals tool to delete the alternate streams instead. However, I have since completely re-written the script so that it no longer requires these external dependencies. As in the script can be run completely standalone. That was the goal, and that has been accomplished. At this point, my interest in continuing to work on it is non-existent, but you are free to do with it as you like.
" data-webshareurl="https://www.autoitscript.com/forum/topic/186690-command-line-utility-to-unblock-files/?do=findComment&comment=1356466">More sharing options...</button>
</div>
</div>
</div>
</article>
<input type="hidden" name="csrfKey" value="c327c170963633c8071c3f483cd211e4">
</form>
POST //www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4
<form action="//www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4" method="post">
<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cuYXV0b2l0c2NyaXB0LmNvbS9mb3J1bS90b3BpYy8xODY2OTAtY29tbWFuZC1saW5lLXV0aWxpdHktdG8tdW5ibG9jay1maWxlcy8=">
<button type="submit" name="id" value="21" class="ipsButton ipsButton_link ipsButton_link_secondary">AutoIt (Default)</button>
</form>
POST //www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4
<form action="//www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4" method="post">
<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cuYXV0b2l0c2NyaXB0LmNvbS9mb3J1bS90b3BpYy8xODY2OTAtY29tbWFuZC1saW5lLXV0aWxpdHktdG8tdW5ibG9jay1maWxlcy8=">
<button type="submit" name="id" value="14" class="ipsButton ipsButton_link ipsButton_link_secondary">AutoIt (Dim) </button>
</form>
POST //www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4
<form action="//www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4" method="post">
<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cuYXV0b2l0c2NyaXB0LmNvbS9mb3J1bS90b3BpYy8xODY2OTAtY29tbWFuZC1saW5lLXV0aWxpdHktdG8tdW5ibG9jay1maWxlcy8=">
<button type="submit" name="id" value="16" class="ipsButton ipsButton_link ipsButton_link_secondary">AutoIt (Simply Blue) </button>
</form>
POST //www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4
<form action="//www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4" method="post">
<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cuYXV0b2l0c2NyaXB0LmNvbS9mb3J1bS90b3BpYy8xODY2OTAtY29tbWFuZC1saW5lLXV0aWxpdHktdG8tdW5ibG9jay1maWxlcy8=">
<button type="submit" name="id" value="17" class="ipsButton ipsButton_link ipsButton_link_secondary">AutoIt (Blue and Yellow) </button>
</form>
POST //www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4
<form action="//www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4" method="post">
<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cuYXV0b2l0c2NyaXB0LmNvbS9mb3J1bS90b3BpYy8xODY2OTAtY29tbWFuZC1saW5lLXV0aWxpdHktdG8tdW5ibG9jay1maWxlcy8=">
<button type="submit" name="id" value="23" class="ipsButton ipsButton_link ipsButton_link_secondary">AutoIt (Blue Lagoon) </button>
</form>
POST //www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4
<form action="//www.autoitscript.com/forum/theme/?csrfKey=c327c170963633c8071c3f483cd211e4" method="post">
<input type="hidden" name="ref" value="aHR0cHM6Ly93d3cuYXV0b2l0c2NyaXB0LmNvbS9mb3J1bS90b3BpYy8xODY2OTAtY29tbWFuZC1saW5lLXV0aWxpdHktdG8tdW5ibG9jay1maWxlcy8=">
<button type="submit" name="id" value="25" class="ipsButton ipsButton_link ipsButton_link_secondary">AutoIt (Dark) </button>
</form>
Text Content
Jump to content * Existing user? Sign In SIGN IN * * * Remember me Not recommended on shared computers * Sign In Forgot your password? * Sign Up * * Browse * Forums * Downloads * Events * Forum Rules * More * Wiki * AutoIt Resources * Release * Installer * Help file * Editor * Beta * Installer * Help file * Editor * Git * FAQ * More * More This Topic * Everywhere * This Forum * This Topic * Topics * Files * Pages * Articles * Events * Members * AutoIt Example Scripts * * * All Activity * Home * AutoIt v3 * AutoIt Example Scripts * Command line utility to unblock files * COMMAND LINE UTILITY TO UNBLOCK FILES * * * * * -------------------------------------------------------------------------------- By MattHiggs, January 22, 2017 in AutoIt Example Scripts Share * * * * -------------------------------------------------------------------------------- More sharing options... Followers 0 RECOMMENDED POSTS MATTHIGGS Posted January 22, 2017 MATTHIGGS * * Active Members * * 605 * * Share Posted January 22, 2017 (edited) Wrote a command line utility which will unblock folders and files passed to it as a parameter. You can pass as many files/folders as you want as a parameter. If function detects "-r" or "/r" as first parameter, will unblock files recursively for directories that are passed to it. Will perform following actions: 1) determine version of powershell installed on computer 2) if powershell version is greater than or equal to 3, will use powershell to unblock the files. Otherwise, will download "streams.exe" for 32-bit systems and "streams64.exe" for 64-bits systems from sysinternals live server and unblock files by deleting the alternate streams on indicated folders. expandcollapse popup #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseX64=y #AutoIt3Wrapper_Change2CUI=y #AutoIt3Wrapper_Res_SaveSource=y #AutoIt3Wrapper_Res_Language=1033 #AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** ; *** Start added by AutoIt3Wrapper *** #include <InetConstants.au3> ; *** End added by AutoIt3Wrapper *** ; *** Start added by AutoIt3Wrapper *** #include <AutoItConstants.au3> #include <WinAPIShPath.au3> ; *** End added by AutoIt3Wrapper *** #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.15.0 (Beta) Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <Array.au3> #include <File.au3> #include <WinAPIFiles.au3> Opt("ExpandEnvStrings", 1) $aCmdLine = _WinAPI_CommandLineToArgv($CmdLineRaw) $recurs = False If $aCmdLine[1] = "/?" And Int($aCmdLine[0]) = 1 Then ConsoleWrite(@CRLF & @CRLF & @TAB & @TAB & @TAB & @TAB & @TAB & "Unblock Files Command Line Utility" & @CRLF & @CRLF & "Unblock files." & @CRLF & "new_unblock.exe [/r] [[[drive:][path][filename]0] .... [[drive:][path][filename]n]]" & _ @CRLF & @CRLF & "/r" & @TAB & "if any of the paths that are passed to the tool are directories, this switch will recursively unblock all files within the directory." & _ @CRLF & @CRLF & "[[[drive:][path][filename]0] .... [[drive:][path][filename]n]]" & @TAB & "The paths that are passed to the tool to be unblocked. These paths can be files or folders. If a folder is specified, only the files in the root of that directory will be unblocked unless the /r switch is specified." & @CRLF) ElseIf $aCmdLine[1] = "/?" And Int($aCmdLine[0]) > 1 Then ConsoleWriteError('Unexpected number of arguments. For information on how to use this tool, run "new_unblock.exe /?".' & @CRLF) Else For $i = 1 To $aCmdLine[0] Step 1 If ($aCmdLine[$i] = "/r" Or $aCmdLine[$i] = "-r") And $i = 1 Then $recurs = True ContinueLoop EndIf If IsFile($aCmdLine[$i]) = 0 Then If $recurs = True Then $files = _FileListToArrayRec($aCmdLine[$i], "*", $FLTAR_FILES, $FLTAR_RECUR) Else $files = _FileListToArray($aCmdLine[$i], "*", $FLTA_FILES) EndIf For $b = 1 To $files[0] Step 1 If FileExists($aCmdLine[$i] & "\" & $files[$b] & ":Zone.Identifier") Then ConsoleWrite ( "Unblocking file " & $aCmdLine[$i] & "\" & $files[$b] & @CRLF ) _WinAPI_DeleteFile($aCmdLine[$i] & "\" & $files[$b] & ":Zone.Identifier:$DATA") Else ContinueLoop EndIf Next Else If FileExists($aCmdLine[$i] & ":Zone.Identifier") Then ConsoleWrite ( "Unblocking file " & $aCmdLine[$i] & @CRLF ) _WinAPI_DeleteFile($aCmdLine[$i] & ":Zone.Identifier:$DATA") Else ContinueLoop EndIf EndIf Next ConsoleWrite ( "DONE" & @CRLF ) EndIf Func IsFile($sFilePath) Return Number(FileExists($sFilePath) And StringInStr(FileGetAttrib($sFilePath), "D", 2, 1) = 0) EndFunc ;==>IsFile *Edit 2/3/2017: I updated the code so that, when the powershell method is used, a path that is under "Program files" or "program files (x86)" does not return an error. **EDIT: The script has been re-written so that it is able to accomplish the same functionality without any prerequisites. Only runs pure AutoIT now. A big thanks to @argumentum for the idea. Edited June 1, 2017 by MattHiggs * argumentum * 1 * LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... MATTHIGGS Posted May 21, 2017 MATTHIGGS * * Active Members * * 605 * Author * * Share Posted May 21, 2017 **Updated. Now allows users to successfully pass environment variables as part of the path specified in the arguments. Also made some changes to improve performance. LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... CHANCE Posted May 23, 2017 CHANCE * * Active Members * * 187 * 1 * * Share Posted May 23, 2017 What exactly do you mean by unblock? Does this take ownership of files and allow you to delete them when owned by another user or does this literally remove locks on files when held by another process, such as when scite has a lock on the parent folder of the open script and does nto allow you to delete it until the process is closed LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... MATTHIGGS Posted May 23, 2017 MATTHIGGS * * Active Members * * 605 * Author * * Share Posted May 23, 2017 (edited) > On 5/23/2017 at 5:02 AM, Chance said: > > What exactly do you mean by unblock? > > Does this take ownership of files and allow you to delete them when owned by > another user or does this literally remove locks on files when held by another > process, such as when scite has a lock on the parent folder of the open script > and does nto allow you to delete it until the process is closed Hello Sir. No. This script will allow you to eliminate occurrences like these: When this property is set on a file (usually when a file is downloaded from the internet), you will encounter the following when trying to run it: For example, say you download a powershell script from Microsoft's script repository (let say this one for example.) When you download it, you can verify by right clicking the file, selecting properties, and looking at the security attribute that the file is blocked. If you try to utilize this script (the example has to be "dot sourced" first, which basically means you type in ". Path\to\script\script.ps1" into powershell console) without first unblocking the file, the below prompt will appear every time: Which, if you are trying to automate a process, will kind of get in the way of that. The script I have provided will remove the blocked status from the files which are passed to it in the command line, thus removing the extra prompt that appears before executing. Edited May 23, 2017 by MattHiggs LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... BREWMANNH Posted May 24, 2017 BREWMANNH * * MVPs * * * 14.1k * 216 * Laus Deo * * Share Posted May 24, 2017 There's a PS cmdlet that does the same thing without having to download anything, use Unblock-File -Path <filepath\filename> If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to. Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude How to ask questions the smart way! > Reveal hidden contents > > I hereby grant any person the right to use any code I post, that I am the > original author of, on the autoitscript.com forums, unless I've specifically > stated otherwise in the code or the thread post. If you do use my code all I > ask, as a courtesy, is to make note of where you got it from. > > Back up and restore Windows user files _Array.au3 - Modified array functions > that include support for 2D arrays. - ColorChooser - An add-on for SciTE > that pops up a color dialog so you can select and paste a color code into a > script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom > "splash screen" GUI with a progress bar and custom label. - _FileGetProperty > - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use > with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use > the Windows messages to interact with controls and your GUI. - Latin Square > password generator LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... MATTHIGGS Posted May 24, 2017 MATTHIGGS * * Active Members * * 605 * Author * * Share Posted May 24, 2017 (edited) > On 5/23/2017 at 4:18 PM, BrewManNH said: > > There's a PS cmdlet that does the same thing without having to download > anything, use Unblock-File -Path <filepath\filename> You should take a look at the description/script source.... Edited May 24, 2017 by MattHiggs LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... BREWMANNH Posted May 24, 2017 BREWMANNH * * MVPs * * * 14.1k * 216 * Laus Deo * * Share Posted May 24, 2017 My bad, didn't read far enough into the script. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to. Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude How to ask questions the smart way! > Reveal hidden contents > > I hereby grant any person the right to use any code I post, that I am the > original author of, on the autoitscript.com forums, unless I've specifically > stated otherwise in the code or the thread post. If you do use my code all I > ask, as a courtesy, is to make note of where you got it from. > > Back up and restore Windows user files _Array.au3 - Modified array functions > that include support for 2D arrays. - ColorChooser - An add-on for SciTE > that pops up a color dialog so you can select and paste a color code into a > script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom > "splash screen" GUI with a progress bar and custom label. - _FileGetProperty > - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use > with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use > the Windows messages to interact with controls and your GUI. - Latin Square > password generator LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... MATTHIGGS Posted May 24, 2017 MATTHIGGS * * Active Members * * 605 * Author * * Share Posted May 24, 2017 > On 5/24/2017 at 4:05 AM, BrewManNH said: > > My bad, didn't read far enough into the script. No worries dude... I would be lying if I said I wasn't guilty of the same, lol. LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... CHANCE Posted May 25, 2017 CHANCE * * Active Members * * 187 * 1 * * Share Posted May 25, 2017 oh snap, I see now. This is useful when you download a project and keep getting that dumb untrusted warning. Thanks LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... MATTHIGGS Posted May 25, 2017 MATTHIGGS * * Active Members * * 605 * Author * * Share Posted May 25, 2017 > On 5/24/2017 at 8:52 PM, Chance said: > > oh snap, I see now. This is useful when you download a project and keep > getting that dumb untrusted warning. > > > > Thanks Exactly.. LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... ARGUMENTUM Posted June 1, 2017 ARGUMENTUM * * MVPs * * * 4k * 39 * ✨Universalist ✨ * * Share Posted June 1, 2017 (edited) why not just: If FileExists($sFile & ":Zone.Identifier") Then FileClose(FileOpen($sFile & ":Zone.Identifier", 2)) FileWrite($sFile & ":Zone.Identifier", "[ZoneTransfer]" & @CRLF & "ZoneId=0" & @CRLF) ; ZoneId=5 would work too EndIf not as clean but it'd solve the problem without the prerequisites. Thanks for sharing @MattHiggs Edit: Found a way to delete the stream #include <WinAPIFiles.au3> If FileExists($sFile & ":Zone.Identifier") Then _WinAPI_DeleteFile($sFile & ":Zone.Identifier:$DATA") ; this will remove the stream EndIf Edited June 1, 2017 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... MATTHIGGS Posted June 1, 2017 MATTHIGGS * * Active Members * * 605 * Author * * Share Posted June 1, 2017 > On 5/31/2017 at 2:44 PM, argumentum said: > > why not just: > > If FileExists($sFile & ":Zone.Identifier") Then > FileClose(FileOpen($sFile & ":Zone.Identifier", 2)) > FileWrite($sFile & ":Zone.Identifier", "[ZoneTransfer]" & @CRLF & "ZoneId=0" & @CRLF) ; ZoneId=5 would work too > EndIf > > not as clean but it'd solve the problem without the prerequisites. > > Thanks for sharing @MattHiggs > > > > Edit: Found a way to delete the stream > > #include <WinAPIFiles.au3> > If FileExists($sFile & ":Zone.Identifier") Then > _WinAPI_DeleteFile($sFile & ":Zone.Identifier:$DATA") ; this will remove the stream > EndIf > > > > Expand Because I'm not as smart/knowledgeable as you veteran scripters, lol. LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... MATTHIGGS Posted June 1, 2017 MATTHIGGS * * Active Members * * 605 * Author * * Share Posted June 1, 2017 > On 5/31/2017 at 2:44 PM, argumentum said: > > why not just: > > If FileExists($sFile & ":Zone.Identifier") Then > FileClose(FileOpen($sFile & ":Zone.Identifier", 2)) > FileWrite($sFile & ":Zone.Identifier", "[ZoneTransfer]" & @CRLF & "ZoneId=0" & @CRLF) ; ZoneId=5 would work too > EndIf > > not as clean but it'd solve the problem without the prerequisites. > > Thanks for sharing @MattHiggs > > > > Edit: Found a way to delete the stream > > #include <WinAPIFiles.au3> > If FileExists($sFile & ":Zone.Identifier") Then > _WinAPI_DeleteFile($sFile & ":Zone.Identifier:$DATA") ; this will remove the stream > EndIf > > > > Expand But the script would be better if it didn't have any prerequisites or dependencies, so I updated the script with the code you provided. You know it's funny, before I began work on this script, I remember doing research in order to determine how Windows flagged a file as "blocked" in order to be able to accomplish what you just showed me, but came up nil after about 30 minutes so I gave up and settled on using the prerequisite methods. The script in the main post has been updated. * argumentum * 1 * LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... BIATU Posted June 5, 2017 BIATU * * Active Members * * 275 * * Share Posted June 5, 2017 you can always rewrite _WINAPI_DeleteFIle, extracting only what u need. Basically, that example is just deleting the NTFS Alt Stream. What is what? What is what. LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... MATTHIGGS Posted June 6, 2017 MATTHIGGS * * Active Members * * 605 * Author * * Share Posted June 6, 2017 > On 6/5/2017 at 8:43 AM, Biatu said: > > you can always rewrite _WINAPI_DeleteFIle, extracting only what u need. > Basically, that example is just deleting the NTFS Alt Stream. I am not sure what you mean.... I was under the impression that the NTFS Alt Stream is the "flag" which indicates that a file came from the internet and is what "blocks" the file. Therefore, deleting the Alt Stream would unblock the file, which is the goal. Can you be a bit more detailed in what you mean? Examples? LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... BIATU Posted June 6, 2017 BIATU * * Active Members * * 275 * * Share Posted June 6, 2017 Well, you mentioned that you'd prefer not to have any includes. So, just rewrite the function and pull what is needed from _WinAPI_DeleteFile . Ya know? And as for Alt Streams...you can store anything in those. Back in the day viruses could be hidden in them, and could be executed directly. What is what? What is what. LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... MATTHIGGS Posted June 6, 2017 MATTHIGGS * * Active Members * * 605 * Author * * Share Posted June 6, 2017 > On 6/5/2017 at 4:35 PM, Biatu said: > > Well, you mentioned that you'd prefer not to have any includes. So, just > rewrite the function and pull what is needed from _WinAPI_DeleteFile . Ya > know? > > And as for Alt Streams...you can store anything in those. Back in the day > viruses could be hidden in them, and could be executed directly. Im sorry man. The more you say the more confused I get. What I was probably referring to in regards to not wanting to have any includes is the fact that the first version of this script used powershell if the version was high enough to contain the "Unblock-file" cmdlet, and if it wasn't, the script would download and use the streams sysinternals tool to delete the alternate streams instead. However, I have since completely re-written the script so that it no longer requires these external dependencies. As in the script can be run completely standalone. That was the goal, and that has been accomplished. At this point, my interest in continuing to work on it is non-existent, but you are free to do with it as you like. LINK TO COMMENT SHARE ON OTHER SITES * * * * -------------------------------------------------------------------------------- More sharing options... CREATE AN ACCOUNT OR SIGN IN TO COMMENT You need to be a member in order to leave a comment CREATE AN ACCOUNT Sign up for a new account in our community. It's easy! Register a new account SIGN IN Already have an account? Sign in here. Sign In Now Share * * * * -------------------------------------------------------------------------------- More sharing options... Followers 0 Go to topic listing * RECENTLY BROWSING 0 MEMBERS * No registered users viewing this page. * * * All Activity * Home * AutoIt v3 * AutoIt Example Scripts * Command line utility to unblock files * Theme * AutoIt (Default) * AutoIt (Dim) * AutoIt (Simply Blue) * AutoIt (Blue and Yellow) * AutoIt (Blue Lagoon) * AutoIt (Dark) * Privacy Policy * Contact Us Powered by Invision Community × * Existing user? Sign In * Sign Up * BROWSE * Back * Forums * Downloads * Events * Forum Rules * Wiki * AUTOIT RESOURCES * Back * RELEASE * Back * Installer * Help file * Editor * BETA * Back * Installer * Help file * Editor * Git * FAQ × * Create New...