<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
<title>VoiceBot RSS: SCRIPT: Check free space in drive</title>
<atom:link href="https://www.voicebot.net/Discussions/RSS/?TopicID=82f78247-82fc-435f-97bb-86695f433e15" rel="self" type="application/rss+xml" />
<link>https://www.voicebot.net/Discussions/RSS/?TopicID=82f78247-82fc-435f-97bb-86695f433e15</link>
<description>VoiceBot RSS: SCRIPT: Check free space in drive</description>
<lastBuildDate>Fri, 18 Sep 2026 15:47:55 GMT</lastBuildDate>
<language>en</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<generator>https://www.voicebot.net/Discussions/RSS/?TopicID=82f78247-82fc-435f-97bb-86695f433e15</generator>
<item>
<title>RE: SCRIPT: Check free space in drive</title>
<link>https://www.voicebot.net/Discussions/View/script-check-free-space-in-drive/?ID=82f78247-82fc-435f-97bb-86695f433e15#2</link>
<pubDate>Tue, 28 Feb 2017 21:17:58 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/script-check-free-space-in-drive/?ID=82f78247-82fc-435f-97bb-86695f433e15#2</guid>
<category>VoiceBot</category>
<description><![CDATA[Thanks for sending this over! We'll add it to the repository]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
Thanks for sending this over! We'll add it to the repository <img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/face-smile.light.svg" alt=":)" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":)" />
</div>
]]></content:encoded>
</item>
<item>
<title>SCRIPT: Check free space in drive</title>
<link>https://www.voicebot.net/Discussions/View/script-check-free-space-in-drive/?ID=82f78247-82fc-435f-97bb-86695f433e15</link>
<pubDate>Sun, 26 Feb 2017 09:52:21 GMT</pubDate>
<dc:creator>Binary Fortress Software</dc:creator>
<guid isPermaLink="false">https://www.voicebot.net/Discussions/View/script-check-free-space-in-drive/?ID=82f78247-82fc-435f-97bb-86695f433e15</guid>
<category>VoiceBot</category>
<description><![CDATA[Code
Copy
Select All
// Set at beginning:&#xA;using System.Diagnostics;&#xA;using System.Collections.Generic;&#xA;&#xA;// --------------&#xA;&#xA;Process p = new Process();&#xA;p.StartInfo.UseShellExecute = false;&#xA;p.StartInfo.CreateNoWindow = true;&#xA;p.StartInfo.RedirectStandardOutput = ...]]></description>
<content:encoded><![CDATA[<div class="CTDiscussions">
<div class="col-md-12 BoxWrap"><div class="Box table-responsive"><a name="code" style="width:0; height:0;"></a><h2 class="TableTitle" style="border:0"><div class="TableTitleText">Code</div><div class="TitleButtons"><div class="TableTitleButton"><a href="#" onclick="return false;" data-clipboard-target="#code01a0b533f16377c5b434a5ce23dc446b" class="ClipboardCopyControl"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/clone.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Copy</span></a></div><div class="TableTitleButton"><a href="#" onclick="bfs.util.codeEditorSelectAll('code01a0b533f16377c5b434a5ce23dc446bJs'); return false;"><img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/square-check.blue.svg" style="box-sizing:border-box;position:relative;overflow:hidden;width:auto;max-width:16px;height:16px;" /><span class="Text">Select All</span></a></div></div></h2><div class="TableTitleContent table-responsive"><div class="AceEditorWrapper" style="border-top:solid 1px var(--color-default-border);padding:0"><pre id="code01a0b533f16377c5b434a5ce23dc446bJs" name="code01a0b533f16377c5b434a5ce23dc446bJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%;min-height:75px">// Set at beginning:&#xA;using System.Diagnostics;&#xA;using System.Collections.Generic;&#xA;&#xA;// --------------&#xA;&#xA;Process p = new Process();&#xA;p.StartInfo.UseShellExecute = false;&#xA;p.StartInfo.CreateNoWindow = true;&#xA;p.StartInfo.RedirectStandardOutput = true;&#xA;p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;&#xA;p.StartInfo.FileName = &quot;fsutil&quot;;&#xA;p.StartInfo.Arguments = &quot;volume diskfree c:&quot;;&#xA;&#xA;string salida = &quot;&quot;;&#xA;string[] separator = new string[] {&quot;\n&quot;};&#xA;string[] output;&#xA;&#xA;p.Start();&#xA;salida = p.StandardOutput.ReadToEnd();&#xA;p.WaitForExit();&#xA;&#xA;output = salida.Split(separator, StringSplitOptions.None);&#xA;string total = output[1].Substring(41);&#xA;total = total.Substring(1, total.Length - 1);&#xA;string libre = output[2].Substring(41);&#xA;libre = libre.Substring(1, libre.Length - 1);&#xA;&#xA;long ttot = Int64.Parse(total);&#xA;long tlib = Int64.Parse(libre);&#xA;long tfin = tlib / 1024 / 1024;&#xA;long tmeg = tfin % 1024;&#xA;tfin = tfin / 1024;&#xA;&#xA;BFS.Speech.TextToSpeech(tfin.ToString() &#x2B; &quot; gigas y &quot; &#x2B; tmeg.ToString() &#x2B; &quot; megas&quot;);</pre><textarea id="code01a0b533f16377c5b434a5ce23dc446b" name="code01a0b533f16377c5b434a5ce23dc446b" style="position:absolute;top:0;left:-999999px;width:1px;height:1px"></textarea></div>
</div></div></div><br/>
<br/>
Working for Spanish text, as it cuts the space bytes using substring. You may adapt the script for your language.  <img src="https://www.voicebot.net/MediaCommon/SVGs/FontAwesome/face-laugh-beam.light.svg" alt=":laugh:" style="box-sizing:border-box;position:relative;overflow:hidden;vertical-align:middle !important;width:16px;height:16px;" HelpButtonData=":laugh:" />
</div>
]]></content:encoded>
</item>
</channel>
</rss>