⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utility.doc

📁 文件属性的改变以及移动文件的c语言程序源代码
💻 DOC
字号:
Program  : List
Author   : Steve Dee
Language : Microsoft C 4.0
Version  : 2.0 created November 1986

Notes:

List will produce formatted hardcopy output of text files.
The use of the wildcard characters * and ? and the use of PATH's is
supported.
** Caution ** List does not check to see what kind of file it is listing,
so if you tell it to list an .EXE file it will attempt to, usually with
bizarre results since it is sending ASC values to the printer that the
printer cannot understand.

Syntax:   List B:\DOS\DOC\*.txt
          list all files with an extension of .txt in the \DOS\DOC directory on
          drive B.

Valid Parameters :

          Margins can be set by using the parameters L,R,T,B.
          i.e. List b:\DOS\DOC\*.txt L0/R50/T0/B10 will set a left margin of
               0, right of 50, top of 0, and bottom of 10.  Default settings
               are L-8,R-79,T-2,B-55.

Program  : Stat
Author   : Steve Dee
Language : Microsoft C 4.0
Version  : 2.0

The use of the wildcard characters * and ? IS allowed.
The use of PATH's ARE allowed.
Setting a file to NORMAL will remove any current attributes.
Setting a file to anything else will ADD those attributes to the 
current file attributes.
Sub-directories MAY be set to HIDDEN and/or SYSTEM.
Syntax: stat drive:\path\filename parameters
Valid Parameter Values Are:
    N - Normal File
    H - Hidden File
    S - System File
    A - Set Archive On
    U - Set Archive Off
i.e. stat a:\path\test.com rhsa
     will set TEST.COM to Read Only, Hidden File, System File,
     and set the Archive Bit on.
exception: Stat will not set itself to HIDDEN/SYSTEM for safety reasons.


Program:  Move
Author :  Steve Dee
Version:  1.1

Notes:
  
        Move allows you to move files between directories on the same drive.
It does not make a copy, it simply changes the directory information.  The
use of the Wildcards ? and * is supported.  Move uses the DOS rename function
so as an added bonus you can move a file and rename it at the same time.

Syntax :  Move \DOS\TEMP\*.* \NEW\*.*
          move all files from directory \DOS\TEMP to directory \NEW.

          Move \DOS\*.exe \BACK\*.bak
          move all files with an extension of .EXE from directory \DOS to
          directory \BACK and rename them with an extension on .BAK

          Move a:\DOS\*.* b:\NEW\*.*
          ** illegal **  you cannot move files to a different drive.


Disclaimer:  

          Standard Shareware disclaimer.  I am not responsible for any harm
          done to anyone, anything, or anyplace by the use of these programs.

Who may use these Programs:

          List, Stat and Move are Shareware programs.  You are encouraged to
          give them to anyone who wants them, friends and enemies alike.  If
          you find these programs of use, a donation would be appreciated 
          suggested ($10.00).  If you are a Business and use these programs
          the donation is mandatory.
          If you find bugs in these programs please tell me about them and I
          will do my best to correct them.  I can be reached at (918)836-8735
          3815 E. 9th St. Tulsa, Ok.  74112 or leave me a message on the 1st    
          Amendment BBS (918)252-5542 or the Bitstream BBS (918)252-9728.
          (E-mail is fine or leave the message in the C Creatures Sig on 1st
          Amendment or the MS-DOS Sig on Bitstream as those sections are run
          by myself).

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -