<?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>Thu, 21 May 2026 11:34:23 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=":)" HelpButtonDataAlign="BelowMiddle" />
</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:
using System.Diagnostics;
using System.Collections.Generic;
// --------------
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.WindowStyle ...]]></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="#code019e4a50b2cf7532b09ec6015a55303a" 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('code019e4a50b2cf7532b09ec6015a55303aJs'); 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="code019e4a50b2cf7532b09ec6015a55303aJs" contenteditable="true" spellcheck="true" class="skiptranslate" style="width:100%; min-height:75px;">// Set at beginning:
using System.Diagnostics;
using System.Collections.Generic;

// --------------

Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.FileName = "fsutil";
p.StartInfo.Arguments = "volume diskfree c:";

string salida = "";
string[] separator = new string[] {"\n"};
string[] output;

p.Start();
salida = p.StandardOutput.ReadToEnd();
p.WaitForExit();

output = salida.Split(separator, StringSplitOptions.None);
string total = output[1].Substring(41);
total = total.Substring(1, total.Length - 1);
string libre = output[2].Substring(41);
libre = libre.Substring(1, libre.Length - 1);

long ttot = Int64.Parse(total);
long tlib = Int64.Parse(libre);
long tfin = tlib / 1024 / 1024;
long tmeg = tfin % 1024;
tfin = tfin / 1024;

BFS.Speech.TextToSpeech(tfin.ToString() + " gigas y " + tmeg.ToString() + " megas");</pre><textarea id="code019e4a50b2cf7532b09ec6015a55303a" name="code019e4a50b2cf7532b09ec6015a55303a" 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:" HelpButtonDataAlign="BelowMiddle" />
</div>
]]></content:encoded>
</item>
</channel>
</rss>