Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
Unit15.pas
Package: 毕业设计(带论文)—试卷生成系统.rar [view]
Upload User: szyozho
Upload Date: 2013-04-13
Package Size: 3688k
Code Size: 2k
Category:
Education soft system
Development Platform:
Delphi
- unit Unit15;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, StdCtrls, Buttons, ExtCtrls;
- type
- Tbackupform = class(TForm)
- Image1: TImage;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- Label4: TLabel;
- SpeedButton1: TSpeedButton;
- Edit1: TEdit;
- SaveDialog1: TSaveDialog;
- BitBtn3: TBitBtn;
- BitBtn4: TBitBtn;
- Label5: TLabel;
- Label6: TLabel;
- Label7: TLabel;
- Label8: TLabel;
- procedure BitBtn1Click(Sender: TObject);
- procedure SpeedButton1Click(Sender: TObject);
- procedure BitBtn3Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- backupform: Tbackupform;
- implementation
- {$R *.dfm}
- procedure Tbackupform.BitBtn1Click(Sender: TObject);
- var
- failure:boolean;
- begin
- failure:=false;
- if not copyfile('D:delphizyDATAa',pchar(trim(edit1.Text)),false) then
- failure:=true;
- if failure then
- ShowMessage('数据备份没有成功!')
- else
- showmessage('数据备份成功!');
- end;
- procedure Tbackupform.SpeedButton1Click(Sender: TObject);
- begin
- if SaveDialog1.Execute then
- Edit1.Text:=SaveDialog1.FileName;
- end;
- procedure Tbackupform.BitBtn3Click(Sender: TObject);
- var
- i:string;
- failure:boolean;
- begin
- failure:=false;
- i:=ExtractFilePath(Application.ExeName);
- if not copyfile(pchar(i+'abao'),pchar(trim(edit1.Text)),false) then
- failure:=true;
- if failure then
- ShowMessage('数据备份没有成功!')
- else
- showmessage('数据备份成功!');
- end;
- end.