File System Processing (2) -- file processing function statements and file system controls

Source: Internet
Author: User

 

Function Name

Function

Statement name

Function

Lof

Length of the returned file number

Seek

Specify the next read/write location of the file

Loc

Returns the read/write location represented by the file number.

Kill

Delete an object

EOF

Test the current read/write location and file pointer of the function.

Whether the file number is located at the end of the file.

Filecopy

Copy a file

Filelen

The length of the returned file, in bytes.

Name

Rename a file

Freefile

Obtain the first one of the unoccupied file numbers.

Chdrive

Change current drive

Seek

Returns the current read/write location of the file specified by the file number.

Chdir

Change current folder

Shell

Run the string parameter "pathname" to specify

Executable files

Mkdir

Create a new folder

Curdir

Returns a string indicating the specified drive.

Current path

Rmdir

Deletes a specified directory or folder.

Dir

Returns a file name, directory name, or

Folder name string

 

 

File System Controls

Attribute

Event

DriveListBox (driver list box Control)

Drive: determines the drive list

The top name in the box is displayed.

Change

Click

DirListBox (directory list box Control)

Path: indicates the current directory.

Listindex: the property value of the subdirectory.

Eg: First subdirectory listindex

The property value is 0.

Listcount: Number of subdirectories

List: A string array containing

Complete path and directory name for each directory

Change

Click

FileListBox (file list box Control)

Path: Specifies the file to be displayed.

Directory or folder

Path Name

Pattern: Specifies

File Type displayed

Filename: returns the file list box.

File Name string selected in

 

This is also linked with the internal functions in Chapter 2 and the VB controls in Chapter 4. There are many similarities in usage and knowledge types, which can be analogous to learning, you can also take this part to the front and learn, but the problem solved is different!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.