mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-08-29 21:05:57 +02:00
2836 lines
66 KiB
HTML
2836 lines
66 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||
<head>
|
||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
|
||
<meta name="generator" content="JsDoc Toolkit" />
|
||
|
||
<title>JsDoc Reference - CeL.application.OS.Windows.file</title>
|
||
|
||
<style type="text/css">
|
||
/* default.css */
|
||
body
|
||
{
|
||
font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
|
||
width: 800px;
|
||
}
|
||
|
||
.header
|
||
{
|
||
clear: both;
|
||
background-color: #ccc;
|
||
padding: 8px;
|
||
}
|
||
|
||
h1
|
||
{
|
||
font-size: 150%;
|
||
font-weight: bold;
|
||
padding: 0;
|
||
margin: 1em 0 0 .3em;
|
||
}
|
||
|
||
hr
|
||
{
|
||
border: none 0;
|
||
border-top: 1px solid #7F8FB1;
|
||
height: 1px;
|
||
}
|
||
|
||
pre.code
|
||
{
|
||
display: block;
|
||
padding: 8px;
|
||
border: 1px dashed #ccc;
|
||
}
|
||
|
||
#index
|
||
{
|
||
margin-top: 24px;
|
||
float: left;
|
||
width: 160px;
|
||
position: absolute;
|
||
left: 8px;
|
||
background-color: #F3F3F3;
|
||
padding: 8px;
|
||
}
|
||
|
||
#content
|
||
{
|
||
margin-left: 190px;
|
||
width: 600px;
|
||
}
|
||
|
||
.classList
|
||
{
|
||
list-style-type: none;
|
||
padding: 0;
|
||
margin: 0 0 0 8px;
|
||
font-family: arial, sans-serif;
|
||
font-size: 1em;
|
||
overflow: auto;
|
||
}
|
||
|
||
.classList li
|
||
{
|
||
padding: 0;
|
||
margin: 0 0 8px 0;
|
||
}
|
||
|
||
.summaryTable { width: 100%; }
|
||
|
||
h1.classTitle
|
||
{
|
||
font-size:170%;
|
||
line-height:130%;
|
||
}
|
||
|
||
h2 { font-size: 110%; }
|
||
caption, div.sectionTitle
|
||
{
|
||
background-color: #7F8FB1;
|
||
color: #fff;
|
||
font-size:130%;
|
||
text-align: left;
|
||
padding: 2px 6px 2px 6px;
|
||
border: 1px #7F8FB1 solid;
|
||
}
|
||
|
||
div.sectionTitle { margin-bottom: 8px; }
|
||
.summaryTable thead { display: none; }
|
||
|
||
.summaryTable td
|
||
{
|
||
vertical-align: top;
|
||
padding: 4px;
|
||
border-bottom: 1px #7F8FB1 solid;
|
||
border-right: 1px #7F8FB1 solid;
|
||
}
|
||
|
||
/*col#summaryAttributes {}*/
|
||
.summaryTable td.attributes
|
||
{
|
||
border-left: 1px #7F8FB1 solid;
|
||
width: 140px;
|
||
text-align: right;
|
||
}
|
||
|
||
td.attributes, .fixedFont
|
||
{
|
||
line-height: 15px;
|
||
color: #002EBE;
|
||
font-family: "Courier New",Courier,monospace;
|
||
font-size: 13px;
|
||
}
|
||
|
||
.summaryTable td.nameDescription
|
||
{
|
||
text-align: left;
|
||
font-size: 13px;
|
||
line-height: 15px;
|
||
}
|
||
|
||
.summaryTable td.nameDescription, .description
|
||
{
|
||
line-height: 15px;
|
||
padding: 4px;
|
||
padding-left: 4px;
|
||
}
|
||
|
||
.summaryTable { margin-bottom: 8px; }
|
||
|
||
ul.inheritsList
|
||
{
|
||
list-style: square;
|
||
margin-left: 20px;
|
||
padding-left: 0;
|
||
}
|
||
|
||
.detailList {
|
||
margin-left: 20px;
|
||
line-height: 15px;
|
||
}
|
||
.detailList dt { margin-left: 20px; }
|
||
|
||
.detailList .heading
|
||
{
|
||
font-weight: bold;
|
||
padding-bottom: 6px;
|
||
margin-left: 0;
|
||
}
|
||
|
||
.light, td.attributes, .light a:link, .light a:visited
|
||
{
|
||
color: #777;
|
||
font-style: italic;
|
||
}
|
||
|
||
.fineprint
|
||
{
|
||
text-align: right;
|
||
font-size: 10px;
|
||
}
|
||
</style>
|
||
</head>
|
||
|
||
<body>
|
||
<!-- ============================== header ================================= -->
|
||
<!-- begin static/header.html -->
|
||
<div id="header">
|
||
</div>
|
||
<!-- end static/header.html -->
|
||
|
||
<!-- ============================== classes index ============================ -->
|
||
<div id="index">
|
||
<!-- begin publish.classesIndex -->
|
||
<div align="center"><a href="../index.html">Class Index</a>
|
||
| <a href="../files.html">File Index</a></div>
|
||
<hr />
|
||
<h2>Classes</h2>
|
||
<ul class="classList">
|
||
|
||
<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
|
||
|
||
<li><a href="../symbols/CeL.html">CeL</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.debug.html">CeL.application.debug</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.debug.log.html">CeL.application.debug.log</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.locale.html">CeL.application.locale</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.net.html">CeL.application.net</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.net.Ajax.html">CeL.application.net.Ajax</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.OS.Windows.html">CeL.application.OS.Windows</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.OS.Windows.file.html">CeL.application.OS.Windows.file</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.OS.Windows.HTA.html">CeL.application.OS.Windows.HTA</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.OS.Windows.job.html">CeL.application.OS.Windows.job</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.OS.Windows.registry.html">CeL.application.OS.Windows.registry</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.OS.Windows.WMI.html">CeL.application.OS.Windows.WMI</a></li>
|
||
|
||
<li><a href="../symbols/CeL.application.storage.file.html">CeL.application.storage.file</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.html">CeL.data</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.check.html">CeL.data.check</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.code.API.html">CeL.data.code.API</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.code.compatibility.html">CeL.data.code.compatibility</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.code.reorganize.html">CeL.data.code.reorganize</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.CSV.html">CeL.data.CSV</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.math.html">CeL.data.math</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.math.Hamming.html">CeL.data.math.Hamming</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.math.polynomial.html">CeL.data.math.polynomial</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.math.quotient.html">CeL.data.math.quotient</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.native.html">CeL.data.native</a></li>
|
||
|
||
<li><a href="../symbols/CeL.data.XML.html">CeL.data.XML</a></li>
|
||
|
||
<li><a href="../symbols/CeL.env.html">CeL.env</a></li>
|
||
|
||
<li><a href="../symbols/CeL.interact.DOM.html">CeL.interact.DOM</a></li>
|
||
|
||
<li><a href="../symbols/CeL.interact.form.address.html">CeL.interact.form.address</a></li>
|
||
|
||
<li><a href="../symbols/CeL.interact.form.select_input.html">CeL.interact.form.select_input</a></li>
|
||
|
||
<li><a href="../symbols/CeL.interact.integrate.map.html">CeL.interact.integrate.map</a></li>
|
||
|
||
<li><a href="../symbols/CeL.interact.integrate.SVG.html">CeL.interact.integrate.SVG</a></li>
|
||
|
||
</ul>
|
||
<hr />
|
||
<!-- end publish.classesIndex -->
|
||
</div>
|
||
|
||
<div id="content">
|
||
<!-- ============================== class title ============================ -->
|
||
<h1 class="classTitle">
|
||
|
||
Class CeL.application.OS.Windows.file
|
||
</h1>
|
||
|
||
<!-- ============================== class summary ========================== -->
|
||
<p class="description">
|
||
|
||
|
||
|
||
Windows 下,檔案操作相關之 function。
|
||
|
||
|
||
<br /><i>Defined in: </i> <a href="../symbols/src/D__USB_cgi-bin_lib_JS_application_OS_Windows_file.origin.js.html">file.origin.js</a>.
|
||
|
||
</p>
|
||
|
||
<!-- ============================== constructor summary ==================== -->
|
||
|
||
<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class CeL.application.OS.Windows.file.">
|
||
<caption>Class Summary</caption>
|
||
<thead>
|
||
<tr>
|
||
<th scope="col">Constructor Attributes</th>
|
||
<th scope="col">Constructor Name and Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td class="attributes"> </td>
|
||
<td class="nameDescription" >
|
||
<div class="fixedFont">
|
||
<b><a href="../symbols/CeL.application.OS.Windows.file.html#constructor">CeL.application.OS.Windows.file</a></b>()
|
||
</div>
|
||
<div class="description">null module constructor</div>
|
||
</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
||
|
||
<!-- ============================== properties summary ===================== -->
|
||
|
||
|
||
|
||
<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class CeL.application.OS.Windows.file.">
|
||
<caption>Field Summary</caption>
|
||
<thead>
|
||
<tr>
|
||
<th scope="col">Field Attributes</th>
|
||
<th scope="col">Field Name and Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> <constant> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.folder_info.f">folder_info.f</a></b>
|
||
</div>
|
||
<div class="description"><a href="#.folder_info">folder_info</a> 的 flag enumeration</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes">fso_attributes</a></b>
|
||
</div>
|
||
<div class="description">FileSystemObject Object Attributes Property</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes.Alias">fso_attributes.Alias</a></b>
|
||
</div>
|
||
<div class="description">Link or shortcut.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes.Archive">fso_attributes.Archive</a></b>
|
||
</div>
|
||
<div class="description">File has changed since last backup.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes.Compressed">fso_attributes.Compressed</a></b>
|
||
</div>
|
||
<div class="description">Compressed file.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes.Directory">fso_attributes.Directory</a></b>
|
||
</div>
|
||
<div class="description">Folder or directory.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes.Hidden">fso_attributes.Hidden</a></b>
|
||
</div>
|
||
<div class="description">Hidden file.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes.none">fso_attributes.none</a></b>
|
||
</div>
|
||
<div class="description">Default.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes.Normal">fso_attributes.Normal</a></b>
|
||
</div>
|
||
<div class="description">Normal file.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes.ReadOnly">fso_attributes.ReadOnly</a></b>
|
||
</div>
|
||
<div class="description">Read-only file.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes.System">fso_attributes.System</a></b>
|
||
</div>
|
||
<div class="description">System file.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.fso_attributes.Volume">fso_attributes.Volume</a></b>
|
||
</div>
|
||
<div class="description">Disk drive volume label.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.iomode">iomode</a></b>
|
||
</div>
|
||
<div class="description">FileSystemObject Object I/O mode enumeration</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.iomode.ForAppending">iomode.ForAppending</a></b>
|
||
</div>
|
||
<div class="description">Open a file and write to the end of the file.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.iomode.ForReading">iomode.ForReading</a></b>
|
||
</div>
|
||
<div class="description">Open a file for reading only.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.iomode.ForWriting">iomode.ForWriting</a></b>
|
||
</div>
|
||
<div class="description">Open a file for writing.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> <constant> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file.f">move_file.f</a></b>
|
||
</div>
|
||
<div class="description"><a href="#.move_file">move_file</a> 的 flag enumeration</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file.f.copy">move_file.f.copy</a></b>
|
||
</div>
|
||
<div class="description">copy, instead of move the file</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file.f.fuzzy">move_file.f.fuzzy</a></b>
|
||
</div>
|
||
<div class="description">If source don't exist but target exist, than reverse.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file.f.include_folder">move_file.f.include_folder</a></b>
|
||
</div>
|
||
<div class="description">include folder</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file.f.include_subfolder">move_file.f.include_subfolder</a></b>
|
||
</div>
|
||
<div class="description">include sub-folder</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file.f.none">move_file.f.none</a></b>
|
||
</div>
|
||
<div class="description">null flag</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file.f.overwrite">move_file.f.overwrite</a></b>
|
||
</div>
|
||
<div class="description">overwrite target</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file.f.remove">move_file.f.remove</a></b>
|
||
</div>
|
||
<div class="description">當 target 指定此 flag,或包含此 flag 而未指定 target 時,remove the source。</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file.f.reverse">move_file.f.reverse</a></b>
|
||
</div>
|
||
<div class="description">reverse source and target</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file.f.Test">move_file.f.Test</a></b>
|
||
</div>
|
||
<div class="description">Just do a test</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.open_format">open_format</a></b>
|
||
</div>
|
||
<div class="description">FileSystemObject Object file open format enumeration</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.open_format.TristateFalse">open_format.TristateFalse</a></b>
|
||
</div>
|
||
<div class="description">Opens the file as ASCII.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.open_format.TristateTrue">open_format.TristateTrue</a></b>
|
||
</div>
|
||
<div class="description">Opens the file as Unicode.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.open_format.TristateUseDefault">open_format.TristateUseDefault</a></b>
|
||
</div>
|
||
<div class="description">Opens the file using the system default.</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> <constant> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.traverse_file_system.f">traverse_file_system.f</a></b>
|
||
</div>
|
||
<div class="description"><a href="#.traverse_file_system">traverse_file_system</a> 的 flag enumeration</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><private> <static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.traverse_file_system.f.driver">traverse_file_system.f.driver</a></b>
|
||
</div>
|
||
<div class="description">用於指示 driver</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><private> <static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.traverse_file_system.f.file">traverse_file_system.f.file</a></b>
|
||
</div>
|
||
<div class="description">用於指示 file</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><private> <static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.traverse_file_system.f.folder">traverse_file_system.f.folder</a></b>
|
||
</div>
|
||
<div class="description">用於指示 folder</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><private> <static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.traverse_file_system.f.func_length">traverse_file_system.f.func_length</a></b>
|
||
</div>
|
||
<div class="description">handle function 應有的長度</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.traverse_file_system.f.get_object">traverse_file_system.f.get_object</a></b>
|
||
</div>
|
||
<div class="description">return object</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.traverse_file_system.f.no_traverse">traverse_file_system.f.no_traverse</a></b>
|
||
</div>
|
||
<div class="description">不深入下層子目錄及檔案</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><private> <static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.traverse_file_system.f.NULL">traverse_file_system.f.NULL</a></b>
|
||
</div>
|
||
<div class="description">null flag</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">
|
||
CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.traverse_file_system.f.traverse">traverse_file_system.f.traverse</a></b>
|
||
</div>
|
||
<div class="description">深入下層子目錄及檔案</div>
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
|
||
|
||
|
||
|
||
|
||
<!-- ============================== methods summary ======================== -->
|
||
|
||
|
||
|
||
<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class CeL.application.OS.Windows.file.">
|
||
<caption>Method Summary</caption>
|
||
<thead>
|
||
<tr>
|
||
<th scope="col">Method Attributes</th>
|
||
<th scope="col">Method Name and Description</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.Ado_binary">Ado_binary</a></b>(data, pos)
|
||
</div>
|
||
<div class="description">轉換以 adTypeBinary 讀到的資料</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><private> <static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.Ado_binary#newDOM">Ado_binary#newDOM</a></b>()
|
||
</div>
|
||
<div class="description"></div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><private> <static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.Ado_binary#newFS">Ado_binary#newFS</a></b>(FP)
|
||
</div>
|
||
<div class="description"></div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><private> <static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.Ado_binary#readData">Ado_binary#readData</a></b>(len)
|
||
</div>
|
||
<div class="description">read data</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.Ado_binary#renew">Ado_binary#renew</a></b>()
|
||
</div>
|
||
<div class="description">實際上沒多大效用。實用解決法:少用 AdoStream.Write()</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.Ado_binary#setData">Ado_binary#setData</a></b>(data, pos)
|
||
</div>
|
||
<div class="description">設定 data</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.change_attributes">change_attributes</a></b>(F, A)
|
||
</div>
|
||
<div class="description">改變檔案之屬性。
|
||
chmod @ UNIX</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.folder_info">folder_info</a></b>(folder_path, file_filter, traverseSubDirectory)
|
||
</div>
|
||
<div class="description">Get the infomation of folder</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.get_file_details">get_file_details</a></b>(fileObj, parentDirObj)
|
||
</div>
|
||
<div class="description">get file details (readonly)</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.iconv_file">iconv_file</a></b>(fileName, toCode, fromCode, encodeFunction)
|
||
</div>
|
||
<div class="description">將編碼為fromCode之檔案fileName中所有不合編碼toCode之char以encodeFunction轉換</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_1_file">move_1_file</a></b>(from, to, dir, only_filename, reverse)
|
||
</div>
|
||
<div class="description">move file</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.move_file">move_file</a></b>(from, to, base_path, flag, filter)
|
||
</div>
|
||
<div class="description">move/rename files, ** use RegExp, but no global flag **<br/>
|
||
可用 move_file_filter() 來排除不要的<br/>
|
||
本函數可能暫時改變目前工作目錄!</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.open_file">open_file</a></b>(FN, format, io_mode)
|
||
</div>
|
||
<div class="description">提供給 <a href="#.read_file">read_file</a>, <a href="#.write_file">write_file</a> 使用的簡易開檔函數</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.openDataTest">openDataTest</a></b>(FN, NOTexist, io_mode)
|
||
</div>
|
||
<div class="description">開檔處理<br/>
|
||
測試是否已開啟資料檔之測試與重新開啟資料檔</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.read_file">read_file</a></b>(FN, format, io_mode, func)
|
||
</div>
|
||
<div class="description">讀取檔案</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.translate_AdoStream_binary_data">translate_AdoStream_binary_data</a></b>(data, len, type)
|
||
</div>
|
||
<div class="description">轉換以 adTypeBinary 讀到的資料</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.traverse_file_system">traverse_file_system</a></b>(FS_function_array, path, filter, flag)
|
||
</div>
|
||
<div class="description">巡覽 file system 的公用函數</div>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td class="attributes"><static> </td>
|
||
<td class="nameDescription">
|
||
<div class="fixedFont">CeL.application.OS.Windows.file.<b><a href="../symbols/CeL.application.OS.Windows.file.html#.write_file">write_file</a></b>(FN, content, format, io_mode, N_O)
|
||
</div>
|
||
<div class="description">將 content 寫入 file
|
||
** ADODB.Stream does not support appending!</div>
|
||
</td>
|
||
</tr>
|
||
|
||
</tbody>
|
||
</table>
|
||
|
||
|
||
|
||
|
||
<!-- ============================== events summary ======================== -->
|
||
|
||
|
||
<!-- ============================== constructor details ==================== -->
|
||
|
||
<div class="details"><a name="constructor"> </a>
|
||
<div class="sectionTitle">
|
||
Class Detail
|
||
</div>
|
||
|
||
<div class="fixedFont">
|
||
<b>CeL.application.OS.Windows.file</b>()
|
||
</div>
|
||
|
||
<div class="description">
|
||
null module constructor
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
|
||
|
||
<!-- ============================== field details ========================== -->
|
||
|
||
<div class="sectionTitle">
|
||
Field Detail
|
||
</div>
|
||
|
||
<a name=".folder_info.f"> </a>
|
||
<div class="fixedFont"><static> <constant>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>folder_info.f</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
<a href="#.folder_info">folder_info</a> 的 flag enumeration
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
FileSystemObject Object Attributes Property
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Since:</dt>
|
||
<dd>2010/1/9 08:33:36</dd>
|
||
</dl>
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">See:</dt>
|
||
|
||
<dd><a href="http://msdn.microsoft.com/en-us/library/5tx15443%28VS.85%29.aspx" accessdate="2010/1/9 8:11">Attributes Property</a></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes.Alias"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes.Alias</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Link or shortcut. Attribute is read-only.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes.Archive"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes.Archive</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
File has changed since last backup. Attribute is read/write.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes.Compressed"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes.Compressed</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Compressed file. Attribute is read-only.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes.Directory"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes.Directory</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Folder or directory. Attribute is read-only.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes.Hidden"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes.Hidden</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Hidden file. Attribute is read/write.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes.none"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes.none</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Default. No attributes are set.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes.Normal"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes.Normal</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Normal file. No attributes are set.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes.ReadOnly"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes.ReadOnly</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Read-only file. Attribute is read/write.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes.System"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes.System</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
System file. Attribute is read/write.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".fso_attributes.Volume"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>fso_attributes.Volume</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Disk drive volume label. Attribute is read-only.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".iomode"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>iomode</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
FileSystemObject Object I/O mode enumeration
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">See:</dt>
|
||
|
||
<dd><a href="http://msdn.microsoft.com/en-us/library/314cz14s%28VS.85%29.aspx" accessdate="2009/11/28 17:42" title="OpenTextFile Method">OpenTextFile Method</a></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".iomode.ForAppending"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>iomode.ForAppending</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Open a file and write to the end of the file.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".iomode.ForReading"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>iomode.ForReading</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Open a file for reading only. You can't write to this file.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".iomode.ForWriting"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>iomode.ForWriting</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Open a file for writing.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file.f"> </a>
|
||
<div class="fixedFont"><static> <constant>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file.f</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
<a href="#.move_file">move_file</a> 的 flag enumeration
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file.f.copy"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file.f.copy</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
copy, instead of move the file
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file.f.fuzzy"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file.f.fuzzy</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
If source don't exist but target exist, than reverse.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Deprecated:</dt>
|
||
<dt>
|
||
TODO
|
||
</dt>
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file.f.include_folder"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file.f.include_folder</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
include folder
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file.f.include_subfolder"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file.f.include_subfolder</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
include sub-folder
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file.f.none"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file.f.none</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
null flag
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file.f.overwrite"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file.f.overwrite</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
overwrite target
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file.f.remove"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file.f.remove</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
當 target 指定此 flag,或包含此 flag 而未指定 target 時,remove the source。
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file.f.reverse"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file.f.reverse</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
reverse source and target
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file.f.Test"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file.f.Test</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Just do a test
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".open_format"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>open_format</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
FileSystemObject Object file open format enumeration
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">See:</dt>
|
||
|
||
<dd><a href="http://msdn.microsoft.com/en-us/library/314cz14s%28VS.85%29.aspx" accessdate="2009/11/28 17:42" title="OpenTextFile Method">OpenTextFile Method</a></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".open_format.TristateFalse"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>open_format.TristateFalse</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Opens the file as ASCII.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".open_format.TristateTrue"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>open_format.TristateTrue</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Opens the file as Unicode.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".open_format.TristateUseDefault"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>open_format.TristateUseDefault</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
Opens the file using the system default.
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".traverse_file_system.f"> </a>
|
||
<div class="fixedFont"><static> <constant>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>traverse_file_system.f</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
<a href="#.traverse_file_system">traverse_file_system</a> 的 flag enumeration
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".traverse_file_system.f.driver"> </a>
|
||
<div class="fixedFont"><private> <static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>traverse_file_system.f.driver</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
用於指示 driver
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".traverse_file_system.f.file"> </a>
|
||
<div class="fixedFont"><private> <static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>traverse_file_system.f.file</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
用於指示 file
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".traverse_file_system.f.folder"> </a>
|
||
<div class="fixedFont"><private> <static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>traverse_file_system.f.folder</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
用於指示 folder
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".traverse_file_system.f.func_length"> </a>
|
||
<div class="fixedFont"><private> <static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>traverse_file_system.f.func_length</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
handle function 應有的長度
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".traverse_file_system.f.get_object"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>traverse_file_system.f.get_object</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
return object
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".traverse_file_system.f.no_traverse"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>traverse_file_system.f.no_traverse</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
不深入下層子目錄及檔案
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".traverse_file_system.f.NULL"> </a>
|
||
<div class="fixedFont"><private> <static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>traverse_file_system.f.NULL</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
null flag
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".traverse_file_system.f.traverse"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>traverse_file_system.f.traverse</b>
|
||
|
||
</div>
|
||
<div class="description">
|
||
深入下層子目錄及檔案
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<!-- ============================== method details ========================= -->
|
||
|
||
<div class="sectionTitle">
|
||
Method Detail
|
||
</div>
|
||
|
||
<a name=".Ado_binary"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>Ado_binary</b>(data, pos)
|
||
|
||
</div>
|
||
<div class="description">
|
||
轉換以 adTypeBinary 讀到的資料
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>data</b>
|
||
|
||
</dt>
|
||
<dd>以 adTypeBinary 讀到的資料</dd>
|
||
|
||
<dt>
|
||
<b>pos</b>
|
||
|
||
</dt>
|
||
<dd>position</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Since:</dt>
|
||
<dd>2007/9/19 20:58:26</dd>
|
||
</dl>
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".Ado_binary#newDOM"> </a>
|
||
<div class="fixedFont"><private> <static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>Ado_binary#newDOM</b>()
|
||
|
||
</div>
|
||
<div class="description">
|
||
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".Ado_binary#newFS"> </a>
|
||
<div class="fixedFont"><private> <static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>Ado_binary#newFS</b>(FP)
|
||
|
||
</div>
|
||
<div class="description">
|
||
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>FP</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".Ado_binary#readData"> </a>
|
||
<div class="fixedFont"><private> <static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>Ado_binary#readData</b>(len)
|
||
|
||
</div>
|
||
<div class="description">
|
||
read data
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>len</b>
|
||
|
||
</dt>
|
||
<dd>length</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".Ado_binary#renew"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>Ado_binary#renew</b>()
|
||
|
||
</div>
|
||
<div class="description">
|
||
實際上沒多大效用。實用解決法:少用 AdoStream.Write()
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".Ado_binary#setData"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>Ado_binary#setData</b>(data, pos)
|
||
|
||
</div>
|
||
<div class="description">
|
||
設定 data
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>data</b>
|
||
|
||
</dt>
|
||
<dd>binary data</dd>
|
||
|
||
<dt>
|
||
<b>pos</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".change_attributes"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>change_attributes</b>(F, A)
|
||
|
||
</div>
|
||
<div class="description">
|
||
改變檔案之屬性。
|
||
chmod @ UNIX
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<pre class="code">change_attributes(path,'-ReadOnly');</pre>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>F</b>
|
||
|
||
</dt>
|
||
<dd>file path</dd>
|
||
|
||
<dt>
|
||
<b>A</b>
|
||
|
||
</dt>
|
||
<dd>attributes, 屬性</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".folder_info"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>folder_info</b>(folder_path, file_filter, traverseSubDirectory)
|
||
|
||
</div>
|
||
<div class="description">
|
||
Get the infomation of folder
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<pre class="code">var finfo=new folder_info(path or folder object,extFilter,0/1);</pre>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>folder_path</b>
|
||
|
||
</dt>
|
||
<dd>folder path</dd>
|
||
|
||
<dt>
|
||
<b>file_filter</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>traverseSubDirectory</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Deprecated:</dt>
|
||
<dt>
|
||
以 <a href="#.traverse_file_system">traverse_file_system</a> 代替
|
||
</dt>
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".get_file_details"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>get_file_details</b>(fileObj, parentDirObj)
|
||
|
||
</div>
|
||
<div class="description">
|
||
get file details (readonly)
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<pre class="code">get_file_details('path');
|
||
get_file_details('file/folder name',parentDir);
|
||
get_file_details('path',get_file_details_get_object);</pre>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>fileObj</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>parentDirObj</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">See:</dt>
|
||
|
||
<dd><a href="http://msdn.microsoft.com/en-us/library/bb787870%28VS.85%29.aspx" accessdate="2009/11/29 22:52" title="GetDetailsOf Method (Folder)">GetDetailsOf Method (Folder)</a></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".iconv_file"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>iconv_file</b>(fileName, toCode, fromCode, encodeFunction)
|
||
|
||
</div>
|
||
<div class="description">
|
||
將編碼為fromCode之檔案fileName中所有不合編碼toCode之char以encodeFunction轉換
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>fileName</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>toCode</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>fromCode</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>encodeFunction</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_1_file"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_1_file</b>(from, to, dir, only_filename, reverse)
|
||
|
||
</div>
|
||
<div class="description">
|
||
move file
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>from</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>to</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>dir</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>only_filename</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>reverse</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Requires:</dt>
|
||
|
||
<dd>fso,get_folder,get_file_name,initWScriptObj</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".move_file"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
<span class="light">{Object}</span>
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>move_file</b>(from, to, base_path, flag, filter)
|
||
|
||
</div>
|
||
<div class="description">
|
||
move/rename files, ** use RegExp, but no global flag **<br/>
|
||
可用 move_file_filter() 來排除不要的<br/>
|
||
本函數可能暫時改變目前工作目錄!
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<span class="light fixedFont">{String}</span> <b>from</b>
|
||
|
||
</dt>
|
||
<dd>from file</dd>
|
||
|
||
<dt>
|
||
<span class="light fixedFont">{String}</span> <b>to</b>
|
||
|
||
</dt>
|
||
<dd>to file</dd>
|
||
|
||
<dt>
|
||
<span class="light fixedFont">{String}</span> <b>base_path</b>
|
||
|
||
</dt>
|
||
<dd>base path</dd>
|
||
|
||
<dt>
|
||
<b>flag</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<span class="light fixedFont">{Function}</span> <b>filter</b>
|
||
|
||
</dt>
|
||
<dd>可用 filter() 來排除不要的</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Since:</dt>
|
||
<dd>2004/4/12 17:25</dd>
|
||
</dl>
|
||
</dl>
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd><span class="light fixedFont">{Object}</span> report</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Requires:</dt>
|
||
|
||
<dd>path_separator,fso,WshShell,new_line,Enumerator</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".open_file"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>open_file</b>(FN, format, io_mode)
|
||
|
||
</div>
|
||
<div class="description">
|
||
提供給 <a href="#.read_file">read_file</a>, <a href="#.write_file">write_file</a> 使用的簡易開檔函數
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>FN</b>
|
||
|
||
</dt>
|
||
<dd>file path</dd>
|
||
|
||
<dt>
|
||
<b>format</b>
|
||
|
||
</dt>
|
||
<dd>open format, e.g., open_format.TristateUseDefault</dd>
|
||
|
||
<dt>
|
||
<b>io_mode</b>
|
||
|
||
</dt>
|
||
<dd>open mode, e.g., iomode.ForWriting</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".openDataTest"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>openDataTest</b>(FN, NOTexist, io_mode)
|
||
|
||
</div>
|
||
<div class="description">
|
||
開檔處理<br/>
|
||
測試是否已開啟資料檔之測試與重新開啟資料檔
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>FN</b>
|
||
|
||
</dt>
|
||
<dd>file name</dd>
|
||
|
||
<dt>
|
||
<b>NOTexist</b>
|
||
|
||
</dt>
|
||
<dd>if NOT need exist</dd>
|
||
|
||
<dt>
|
||
<b>io_mode</b>
|
||
|
||
</dt>
|
||
<dd>IO mode</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Requires:</dt>
|
||
|
||
<dd>fso,WshShell,iomode</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".read_file"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
<span class="light">{String}</span>
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>read_file</b>(FN, format, io_mode, func)
|
||
|
||
</div>
|
||
<div class="description">
|
||
讀取檔案
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>FN</b>
|
||
|
||
</dt>
|
||
<dd>file path</dd>
|
||
|
||
<dt>
|
||
<b>format</b>
|
||
|
||
</dt>
|
||
<dd>open encode = simpleFileDformat</dd>
|
||
|
||
<dt>
|
||
<b>io_mode</b>
|
||
|
||
</dt>
|
||
<dd>open IO mode = ForReading</dd>
|
||
|
||
<dt>
|
||
<b>func</b>
|
||
|
||
</dt>
|
||
<dd>do this function per line, or [func, maxsize] (TODO)</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd><span class="light fixedFont">{String}</span> 檔案內容</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".translate_AdoStream_binary_data"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>translate_AdoStream_binary_data</b>(data, len, type)
|
||
|
||
</div>
|
||
<div class="description">
|
||
轉換以 adTypeBinary 讀到的資料
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<pre class="code">// 較安全的讀檔:
|
||
t=translate_AdoStream_binary_data(read_file(FP,'binary'));
|
||
write_file(FP,t,'iso-8859-1');</pre>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>data</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>len</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
<dt>
|
||
<b>type</b>
|
||
|
||
</dt>
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">See:</dt>
|
||
|
||
<dd><a href="http://www.hawk.34sp.com/stdpls/dwsh/charset_adodb.html">Hawk's W3 Laboratory : Disposable WSH : 番外編:文字エンコーディングとADODB.Stream</a></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".traverse_file_system"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>traverse_file_system</b>(FS_function_array, path, filter, flag)
|
||
|
||
</div>
|
||
<div class="description">
|
||
巡覽 file system 的公用函數
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>FS_function_array</b>
|
||
|
||
</dt>
|
||
<dd>file system handle function array</dd>
|
||
|
||
<dt>
|
||
<b>path</b>
|
||
|
||
</dt>
|
||
<dd>target path</dd>
|
||
|
||
<dt>
|
||
<b>filter</b>
|
||
|
||
</dt>
|
||
<dd>filter</dd>
|
||
|
||
<dt>
|
||
<b>flag</b>
|
||
|
||
</dt>
|
||
<dd>see <a href="#.traverse_file_system.f">flag</a></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">See:</dt>
|
||
|
||
<dd><a href="http://msdn.microsoft.com/library/en-us/script56/html/0fa93e5b-b657-408d-9dd3-a43846037a0e.asp">FileSystemObject</a></dd>
|
||
|
||
</dl>
|
||
|
||
|
||
<hr />
|
||
|
||
<a name=".write_file"> </a>
|
||
<div class="fixedFont"><static>
|
||
|
||
|
||
<span class="light">CeL.application.OS.Windows.file.</span><b>write_file</b>(FN, content, format, io_mode, N_O)
|
||
|
||
</div>
|
||
<div class="description">
|
||
將 content 寫入 file
|
||
** ADODB.Stream does not support appending!
|
||
|
||
|
||
</div>
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Parameters:</dt>
|
||
|
||
<dt>
|
||
<b>FN</b>
|
||
|
||
</dt>
|
||
<dd>file path</dd>
|
||
|
||
<dt>
|
||
<b>content</b>
|
||
|
||
</dt>
|
||
<dd>content to write</dd>
|
||
|
||
<dt>
|
||
<b>format</b>
|
||
|
||
</dt>
|
||
<dd>open format = simpleFileDformat</dd>
|
||
|
||
<dt>
|
||
<b>io_mode</b>
|
||
|
||
</dt>
|
||
<dd>write mode = ForWriting, e.g., ForAppending</dd>
|
||
|
||
<dt>
|
||
<b>N_O</b>
|
||
|
||
</dt>
|
||
<dd>DO NOT overwrite</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
<dl class="detailList">
|
||
<dt class="heading">Returns:</dt>
|
||
|
||
<dd>error No.</dd>
|
||
|
||
</dl>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<!-- ============================== event details ========================= -->
|
||
|
||
|
||
<hr />
|
||
</div>
|
||
|
||
|
||
<!-- ============================== footer ================================= -->
|
||
<div class="fineprint" style="clear:both">
|
||
|
||
Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Sat Aug 20 2011 15:07:29 GMT+0800 (CST)
|
||
</div>
|
||
</body>
|
||
</html>
|