<?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/17418" />

	<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>2009-12-14T09:53:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-12-14T09:53:55-04:00</updated>

		<published>2009-12-14T09:53:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91284#p91284</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91284#p91284"/>
		<title type="html"><![CDATA[Absolute path in Windrop?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91284#p91284"><![CDATA[
I tend to use the 'file join' command to add whatever separator is appropriate for the operating environment. This would work irrespective of the bot being an Eggdrop on a Linux shell or a Windrop on your Windows based PC.<br><br>For example you could enquire if the directory c:\windows and/or d:\windows exists using the following Tcl via the windrops partyline (providing of course partyline .tcl commands are activated on in the bot's .conf file) :-<br><br>[13:41] &lt;arfer&gt; .tcl set x [file isdirectory [file join c: windows]]<br>[13:41] &lt;osmosis&gt; Tcl: 1<br><br>[13:55] &lt;arfer&gt; .tcl set x [file isdirectory [file join d: windows]]<br>[13:55] &lt;osmosis&gt; Tcl: 0<br><br>If I was opening a file for reading with a path relative to the bots root directory, I could use something like the following for example :-<br><br>set id [open [file join scripts data whatever.txt] r]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Mon Dec 14, 2009 9:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[henasraf]]></name></author>
		<updated>2009-12-14T03:24:00-04:00</updated>

		<published>2009-12-14T03:24:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91283#p91283</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91283#p91283"/>
		<title type="html"><![CDATA[Absolute path in Windrop?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91283#p91283"><![CDATA[
Yes, I know it's tricky. But I tried and I can't find the trick! What do I do to be able to refer to a file using an absolute path in Tcl used by Windrop? Please help D:<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10934">henasraf</a> — Mon Dec 14, 2009 3:24 am</p><hr />
]]></content>
	</entry>
	</feed>
