<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[esxDOS BBS — Request for a DOT-Command to report if file or directory exist]]></title>
		<link>https://board.esxdos.org/viewtopic.php?id=1067</link>
		<atom:link href="https://board.esxdos.org/extern.php?action=feed&amp;tid=1067&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Request for a DOT-Command to report if file or directory exist.]]></description>
		<lastBuildDate>Mon, 30 Sep 2024 16:21:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Request for a DOT-Command to report if file or directory exist]]></title>
			<link>https://board.esxdos.org/viewtopic.php?pid=2244#p2244</link>
			<description><![CDATA[<p>CHDir not a valid Next dot command or direct command</p><p>This will work though</p><p>5 Folder$=&quot;games\mygear&quot;<br />10 r$=&quot;Directory found&quot;<br />20 on error r$=&quot;Not found&quot;: goto %50<br />40 CD Folder$<br />50 Print r$: on error</p><p>If you wish to confirm if a file exists I found the best method is using the dot command .filesize<br />.filesize myfile</p><p>This puts the file size in variable T.&nbsp; If no file existing T=0<br />This command isn&#039;t in the distro you have to add it to the dot directory to use</p>]]></description>
			<author><![CDATA[null@example.com (SZERMAN)]]></author>
			<pubDate>Mon, 30 Sep 2024 16:21:08 +0000</pubDate>
			<guid>https://board.esxdos.org/viewtopic.php?pid=2244#p2244</guid>
		</item>
		<item>
			<title><![CDATA[Re: Request for a DOT-Command to report if file or directory exist]]></title>
			<link>https://board.esxdos.org/viewtopic.php?pid=2229#p2229</link>
			<description><![CDATA[<div class="quotebox"><cite>Luzie wrote:</cite><blockquote><div class="quotebox"><cite>aowen wrote:</cite><blockquote><p>I&#039;m fairly sure Garry&#039;s version of 128 BASIC has some kind of error handling equivalent to ON ERROR that you could use for that purpose.</p></blockquote></div><p>Thank you. Someone tells me a way in NextBASIC (using ON ERROR) to check for existance of a file or directory.</p></blockquote></div><p>Sorry no-one has got back to you on this. Here&#039;s how I&#039;d do it in SE Basic IV.</p><div class="codebox"><pre><code>10 EXISTS = 1
20 FOLDER$ = &quot;FOLDER&quot;
30 ON ERROR GOSUB 100
40 CHDIR FOLDER$
50 IF EXISTS = 1 THEN PRINT &quot;Folder exists&quot;: ELSE PRINT &quot;Folder does not exist&quot;
60 END
100 ON ERROR STOP
110 EXISTS = 0
120 RETURN</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (aowen)]]></author>
			<pubDate>Mon, 24 Jul 2023 16:54:33 +0000</pubDate>
			<guid>https://board.esxdos.org/viewtopic.php?pid=2229#p2229</guid>
		</item>
		<item>
			<title><![CDATA[Re: Request for a DOT-Command to report if file or directory exist]]></title>
			<link>https://board.esxdos.org/viewtopic.php?pid=2227#p2227</link>
			<description><![CDATA[<div class="quotebox"><cite>aowen wrote:</cite><blockquote><p>I&#039;m fairly sure Garry&#039;s version of 128 BASIC has some kind of error handling equivalent to ON ERROR that you could use for that purpose.</p></blockquote></div><p>Thank you. Someone tells me a way in NextBASIC (using ON ERROR) to check for existance of a file or directory.</p>]]></description>
			<author><![CDATA[null@example.com (Luzie)]]></author>
			<pubDate>Thu, 06 Jul 2023 15:34:30 +0000</pubDate>
			<guid>https://board.esxdos.org/viewtopic.php?pid=2227#p2227</guid>
		</item>
		<item>
			<title><![CDATA[Re: Request for a DOT-Command to report if file or directory exist]]></title>
			<link>https://board.esxdos.org/viewtopic.php?pid=2224#p2224</link>
			<description><![CDATA[<p>I&#039;m fairly sure Garry&#039;s version of 128 BASIC has some kind of error handling equivalent to ON ERROR that you could use for that purpose.</p>]]></description>
			<author><![CDATA[null@example.com (aowen)]]></author>
			<pubDate>Tue, 04 Jul 2023 17:03:15 +0000</pubDate>
			<guid>https://board.esxdos.org/viewtopic.php?pid=2224#p2224</guid>
		</item>
		<item>
			<title><![CDATA[Request for a DOT-Command to report if file or directory exist]]></title>
			<link>https://board.esxdos.org/viewtopic.php?pid=2223#p2223</link>
			<description><![CDATA[<p>Here´s my request for a DOT-Command e.g. called &quot;.ifexist&quot; to report if file or directory exists.</p><p>I need it under NextBASIC, and there´s no BASIC built-in command for doing this query from NextBASIC yet.</p><p>Thank you!</p>]]></description>
			<author><![CDATA[null@example.com (Luzie)]]></author>
			<pubDate>Thu, 13 Apr 2023 15:52:47 +0000</pubDate>
			<guid>https://board.esxdos.org/viewtopic.php?pid=2223#p2223</guid>
		</item>
	</channel>
</rss>
