| <?xml version="1.0" encoding="UTF-8"?> |
| |
| <!--*********************************************************** |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| ***********************************************************--> |
| |
| <helpdocument version="1.0"> |
| <meta> |
| <topic id="textsbasicshared03020413xml" indexer="include" status="PUBLISH"> |
| <title id="tit" xml-lang="en-US">RmDir Statement [Runtime]</title> |
| <filename>/text/sbasic/shared/03020413.xhp</filename> |
| </topic> |
| </meta> |
| <body> |
| <section id="rmdir"> |
| <bookmark xml-lang="en-US" branch="index" id="bm_id3148947"> |
| <bookmark_value>RmDir statement</bookmark_value> |
| </bookmark> |
| <paragraph role="heading" id="hd_id3148947" xml-lang="en-US" level="1" l10n="U"><link href="text/sbasic/shared/03020413.xhp" name="RmDir Statement [Runtime]">RmDir Statement [Runtime]</link></paragraph> |
| <paragraph role="paragraph" id="par_id3149457" xml-lang="en-US" l10n="U">Deletes an existing directory from a data medium.</paragraph> |
| </section> |
| <paragraph role="heading" id="hd_id3153361" xml-lang="en-US" level="2" l10n="U">Syntax:</paragraph> |
| <paragraph role="code" id="par_id3154367" xml-lang="en-US" l10n="U">RmDir Text As String</paragraph> |
| <paragraph role="heading" id="hd_id3156281" xml-lang="en-US" level="2" l10n="U">Parameters:</paragraph> |
| <paragraph role="paragraph" id="par_id3151042" xml-lang="en-US" l10n="U"><emph>Text:</emph> Any string expression that specifies the name and path of the directory that you want to delete. You can also use <link href="text/sbasic/shared/00000002.xhp" name="URL notation">URL notation</link>.</paragraph> |
| <paragraph role="paragraph" id="par_id3153192" xml-lang="en-US" l10n="U">If the path is not determined, the <emph>RmDir Statement</emph> searches for the directory that you want to delete in the current path. If it is not found there, an error message appears.</paragraph> |
| <embed href="text/sbasic/shared/00000003.xhp#errorcode"/> |
| <embed href="text/sbasic/shared/00000003.xhp#err5"/> |
| <embed href="text/sbasic/shared/00000003.xhp#err76"/> |
| <paragraph role="heading" id="hd_id3145271" xml-lang="en-US" level="2" l10n="U">Example:</paragraph> |
| <paragraph role="code" id="par_id3156442" xml-lang="en-US" l10n="U">Sub ExampleRmDir</paragraph> |
| <paragraph role="code" id="par_id3154319" xml-lang="en-US" l10n="U">MkDir "C:\Test2"</paragraph> |
| <paragraph role="code" id="par_id3159154" xml-lang="en-US" l10n="U">ChDir "C:\test2"</paragraph> |
| <paragraph role="code" id="par_id3151112" xml-lang="en-US" l10n="U">msgbox Curdir</paragraph> |
| <paragraph role="code" id="par_id3147427" xml-lang="en-US" l10n="U">ChDir "\"</paragraph> |
| <paragraph role="code" id="par_id3153188" xml-lang="en-US" l10n="U">RmDir "C:\test2"</paragraph> |
| <paragraph role="code" id="par_id3146120" xml-lang="en-US" l10n="U">end sub</paragraph> |
| </body> |
| </helpdocument> |