<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/12309" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2006-08-20T18:05:19-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/12309</id>

		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-08-20T18:05:19-04:00</updated>

		<published>2006-08-20T18:05:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65681#p65681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65681#p65681"/>
		<title type="html"><![CDATA[Delete a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65681#p65681"><![CDATA[
You could do:  <br><br>file delete -force $fname<br><br>or better:<br><br>catch {file delete -force $fname} error<br><br><br>and then check the return value contained in $error to see what's going on.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Aug 20, 2006 6:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-08-20T17:16:49-04:00</updated>

		<published>2006-08-20T17:16:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65678#p65678</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65678#p65678"/>
		<title type="html"><![CDATA[Delete a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65678#p65678"><![CDATA[
And can you tell me why this isn't working?<div class="codebox"><p>Code: </p><pre><code>set fname "scripts/test.txt"bind pub - !reset m:resetproc m:reset {nick uhost hand chan arg} {global fname if {[file exists $fname]} {  file delete $fname     putquick "PRIVMSG $chan :Done." } else {  putquick "PRIVMSG $chan :File does not exist." }}</code></pre></div>It says "Done" but the file isn't deleted.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sun Aug 20, 2006 5:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-19T11:37:35-04:00</updated>

		<published>2006-08-19T11:37:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65630#p65630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65630#p65630"/>
		<title type="html"><![CDATA[Delete a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65630#p65630"><![CDATA[
yup... using the "file delete" command<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Aug 19, 2006 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-08-19T11:08:06-04:00</updated>

		<published>2006-08-19T11:08:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65629#p65629</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65629#p65629"/>
		<title type="html"><![CDATA[Delete a file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65629#p65629"><![CDATA[
Hello!<br>I wonder if it is possible to delete a textfile with an eggdrop. With "catch {close [open $fname w]}" you can create a file. Is there a possibility to delete it with another command?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sat Aug 19, 2006 11:08 am</p><hr />
]]></content>
	</entry>
	</feed>
