Displaying Source Code(s)
|
|
QuickSplit - File Split/Restore Utility (Project)
--------------------------------------------------------------------------------
Description : A file split/restore utility which can be used to
split large files into small pieces. The main advantage this
utility is when you need to transfer large files using a number
of floppy disks. You will be able to utilise the storage
capacity of the floppy to its maximum.
/* include file DECLARE.H */
#define BACKSPACE 14
#define ENTER 28
#define KEYRIGHT 77
#define KEYLEFT 75
#define KEYUP 72
#define KEYDOWN 80
#define TAB 15
#define DELETE 83
#define HOME 71
#define END 79
#define PGUP 73
#define PGDOWN 81
#define CtrlPGDOWN 118
#define CtrlPGUP 132
#define CtrlRIGHT 116
#define CtrlLEFT 115
#define CtrlHOME 119
#define CtrlEND 117
#define CTRL_Y 21
#define CTRL_T 20
#define INSERT 82
#define ESCAPE 1
#define F1 59
#define F2 60
#define F3 61
#define F4 62
#define F5 63
#define F6 64
#define F7 65
#define F8 66
#define F9 67
#define F10 68
#define MAX_BUF 512
#define NORM_C 112
#define HIGH_C 47
#define HOTK_C 11
#define DIR_C 49
#define FIL_C 48
struct Files
{
struct Files *prev;
char *fname;
struct Files *next;
};
struct Files *Flist=NULL;
char password[10]={"ARCHANA"};
char far *mem=(char far*)0xB8000000;
int scan,ascii,Ftotal;
char path[MAX_BUF],dest[MAX_BUF],buffer[MAX_BUF];
char drive[5],fpath[MAX_BUF],filename[15],ext[5];
char *help;
char *menu[8]={
"^Split",
"Res^tore",
"^Quick Split",
"Quick ^Restore",
"^Format",
"^About",
"^Help",
"^Exit"
};
/* include file INTERF.H */
void writechar(int,int,char,char);
void readchar(int,int,char*,char*);
void
writesentence(char,char,char,char*,char*,char*,char,char,char);
void writeline(char,char,char*,char,char);
void platform(char,char,char,char,char,char,char);
void singlebox(char,char,char,char,char);
void doublebox(char,char,char,char,char);
void brickbox(char,char,char,char,char);
void createtable(char,char,char,char,char,char,char);
void savevedeo(int,int,int,int,char far*);
void restorevedeo(int,int,int,int,char far*);
void highlight(char,char,char,char);
void clearscreen();
void singleline_cut(int,int,int);
void doubleline_cut(int,int,int);
void sizecursor(char,char);
void readkey(int*,int*);
void setattr(char *,int);
void writechar(int x,int y,char c,char attr)
{
int location;
location=x*160+y*2;
if(x<0||x>25||y<0||y>79)
return;
if(c!='
|
|
|