home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR2
/
AMIBAKUP.ZIP
/
AMIBAKUP.SMM
< prev
Wrap
INI File
|
1993-11-23
|
10KB
|
821 lines
[ver]
4
[sty]
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
HP LaserJet 4Si/4Si MX
[port]
LPT1:
[lang]
1
[desc]
LaLaLaLaLa
754081264
29
738701124
1644
3
0
0
0
0
1
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[ParaNum]
1
[tag]
Body Text
2
[fnt]
Arial
240
0
16384
[algn]
1
1
216
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
16
0
0
[nfmt]
272
1
3
.
,
$
Body Text
0
0
[tag]
Body Single
3
[fnt]
Times New Roman
240
0
49152
[algn]
1
1
0
0
0
[spc]
33
273
1
0
0
1
100
[brk]
4
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
0
0
1
1
0
0
0
0
[nfmt]
280
1
2
.
,
$
Body Single
0
0
[tag]
Function
4
[fnt]
Arial
240
0
16385
[algn]
1
1
0
0
0
[spc]
33
244
1
0
0
1
100
[brk]
68
[line]
8
0
1
0
1
1
1
10
10
1
[spec]
0
1
0
1
1
0
0
0
0
[nfmt]
272
1
3
.
,
$
Body Text
0
0
[lay]
Standard
513
[rght]
15840
12240
1
1440
1440
1
1440
1440
0
1
0
1
0
2
1
1440
10800
12
1
720
1
1440
1
2160
1
2880
1
3600
1
4320
1
5040
1
5760
1
6480
1
7200
1
7920
1
8640
[hrght]
[lyfrm]
1
11200
0
0
12240
1440
0
1
3
1 0 0 0 0 0 0
0
0
1
[frmlay]
1440
12240
1
1440
72
1
792
1440
0
1
0
1
1
0
1
1440
10800
1
3
9360
[txt]
>
[frght]
[lyfrm]
1
13248
0
14400
12240
15840
0
1
3
1 0 0 0 0 0 0
0
0
2
[frmlay]
15840
12240
1
1440
792
1
14472
1440
0
1
0
1
1
0
1
1440
10800
2
2
4680
3
9360
[txt]
>
[elay]
[l1]
0
[pg]
3
44 0 5 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
89 0 32 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
114 0 10 1025 0 0 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
[edoc]
<:#276,9360>DEFINE GetText() DllCall("user,SendMessage,HHHHD", %1,0x40A, %2, %3)
<:#276,9360>DEFINE GetSelItems() DllCall("user,SendMessage,HHHHN", %1,0x412, %2, %3)
<:#276,9360>DEFINE LB_GetSel 0x408
<:#276,9360>DEFINE LB_GetSelCount 0x411
@Function@<:#283,9360>Function Backup()
<:#276,9360>ThisMacro = GetRunningMacroFile$()
<:#276,9360>Declare ThisMacro!GetSize(Size)
<:#276,9360>Backup:
<:#276,9360>SetDlgCallback(9001, "{ThisMacro}!GetSize")
<:#276,9360>DOCS = GetDocPath$()
<:#276,9360>FillEdit (9001, "{DOCS}*.sam, 16")
<:#276,9360>Result = DialogBox(".", "Backup")
<:#276,9360> If Result != 1
<:#276,9360> Exit Function
<:#276,9360> EndIf
<:#276,9360>A = GetDialogField$(20)
<:#276,9360>B = GetDialogField$(21)
<:#276,9360> If A ="0"
<:#276,9360> And B ="0"
<:#276,9360> Message("Please Select A Drive To Back The Files Up To.")
<:#276,9360> GoTo Backup
<:#276,9360> EndIf
<:#276,9360>Files = GetDialogField$(8001)
<:#276,9360> If Files = ""
<:#276,9360> Message("No Files Were Selected For Backing Up.")
<:#276,9360> GoTo Backup
<:#276,9360> EndIf
Space = Instr(1, Files, " ")
HourGlass(1)
While Space != 0
<:#276,9360>
<:#276,9360> File = Left$(Files, {Space} - 1)
<:#276,9360> Files = Right$(Files, len(Files) - Space)
<:#276,9360> Space = Instr(1, Files, " ")
If A = "1"
StatusBarMsg("Ami Pro Backup Is Now Copying {File} To The A:\ Drive.")
<:#276,9360> DOSCopyFile({File}, "A:\{File}")
<:#276,9360> EndIf
<:#276,9360> If B = "1"
<:#552,9360> StatusBarMsg("Ami Pro Backup Is Now Copying {File} To The B:\ Drive.")
<:#276,9360> DOSCopyFile({File}, "B:\{File}")
<:#276,9360> EndIf
<:#276,9360>
<:#276,9360> Wend
<:#276,9360>If Space = 0
<:#276,9360> File = Files
<:#276,9360> EndIf
<:#276,9360>If A = "1"
<:#276,9360> StatusBarMsg("Ami Pro Backup Is Now Copying {File} To The A:\ Drive.")
<:#276,9360> DOSCopyFile({File}, "A:\{File}")
<:#276,9360>EndIf
<:#276,9360>If B = "1"
<:#276,9360> StatusBarMsg("Ami Pro Backup Is Now Copying {File} To The B:\ Drive.")
<:#276,9360> DOSCopyFile({File}, "B:\{File}")
<:#276,9360>EndIf
<:#276,9360>HourGlass(0)
<:#276,9360>StatusBarMsg("")
More = Decide("Would you like to backup anymore files?", "Backup Complete!")
<:#276,9360> If More = 1
<:#276,9360> GoTo Backup
<:#276,9360> EndIf
@Function@<:#283,9360>End Function
@Function@<:#283,9360>
@Function@<:#283,9360>Function GetSize(hdlg, Size)
<:#276,9360>onerror outahere
<:#276,9360>oncancel outahere
<:#276,9360>files = getdlgitemtext(hdlg, 8001)
<:#276,9360> if files = ""
<:#276,9360> exit function
<:#276,9360> endif
<:#276,9360>countfiles = files
<:#276,9360>counter:
<:#276,9360>space = instr(1, countfiles, " ")
<:#276,9360> if space != 0
<:#276,9360> numfiles = numfiles + 1
<:#276,9360> leftside = left$(countfiles, space - 1)
<:#276,9360> rightside = right$(countfiles, len(countfiles) - space)
<:#276,9360> countfiles = strcat$(leftside, rightside)
<:#276,9360> goto counter
<:#276,9360> endif
<:#276,9360>numfiles = numfiles + 1
<:#276,9360>dir = getcurrentdir$()
<:#276,9360> If Numfiles <;> 9
<:#552,9360> Message("You have selected more than 9 files. Please deselect a file.", "Ami Pro Backup")
<:#276,9360> Numfiles = 9
<:#276,9360> EndIf
<:#276,9360> for x = 1 to numfiles
<:#276,9360> space = instr(1, files, " ")
<:#276,9360> file = left$(files, space - 1)
<:#276,9360> files = right$(files, len(files) - space)
<:#276,9360> id = fopen("{dir}{file}", "r")
<:#276,9360> fseek(id, 0, 2)
<:#276,9360> size = size + ftell(id)
<:#276,9360> fclose(id)
<:#276,9360> next
<:#276,9360>outahere:
<:#276,9360>fclose(id)
<:#276,9360>setdlgitemtext(hdlg, 1005, size)
@Function@<:#283,9360>End Function
<:#276,9360>
<:#276,9360>DIALOG Backup
<:#552,9360>-2134376448 11 98 54 198 142 "" "" "Ami Pro File Backup Options"
<:#276,9360>3 16 54 89 9001 1352728587 "listbox" "" 0
<:#276,9360>153 7 40 14 1 1342373889 "button" "OK" 0
<:#276,9360>153 27 40 14 2 1342373888 "button" "Cancel" 0
<:#276,9360>60 17 40 12 20 1342242825 "button" "Drive A:" 0
<:#276,9360>60 29 38 12 21 1342242825 "button" "Drive B:" 0
<:#276,9360>60 6 36 10 1000 1342177280 "static" "Backup to:" 0
<:#828,9360>62 45 131 27 1001 1342177280 "static" "Choose your files to backup and then choose OK. You cannot choose more than nine files at a time." 0
<:#276,9360>3 5 40 10 1004 1342177280 "static" "Files:" 0
<:#276,9360>4 108 188 30 8001 1342177280 "static" "" 0
<:#552,9360>80 78 70 10 1002 1342177280 "static" "Total Bytes Selected:" 0
<:#276,9360>153 74 42 12 1005 1350631552 "edit" "" 0
<:#276,9360>END DIALOG
>
[Embedded]
00007441
>
[macsum] 3
Backup 0 0 10 4
GetSize 1272 2 11 63
Backup 2128 0 -1 100
[macse]
14 Backup
0 802
13
8 1
0 41 9001 "{1}!GetSize"
0 268
13
8 2
0 31 9001 "{2}*.sam, 16"
0 26 "." "Backup"
13
8 3
6 3
5 1
18 1
11 00000163
6 0
15
9
0 27 20
13
8 4
0 27 21
13
8 5
6 4
7 "0"
18 0
6 5
7 "0"
18 0
1 1
11 00000320
0 3 "Please Select A Drive To Back The Files Up To."
10 00000027
0 27 8001
13
8 6
6 6
7 ""
18 0
11 00000429
0 3 "No Files Were Selected For Backing Up."
10 00000027
0 808 1 "{6}" " "
13
8 7
0 296 1
6 7
5 0
18 1
11 00000857
6 7
5 1
3 1
0 806 "{6}" [X]
13
8 8
0 14 "{6}"
13
6 7
3 1
0 807 "{6}" [X]
13
8 6
0 808 1 "{6}" " "
13
8 7
6 4
7 "1"
18 0
11 00000730
0 789 "Ami Pro Backup Is Now Copying {8} To The A:\ Drive."
0 803 "{8}" "A:\{8}"
6 5
7 "1"
18 0
11 00000844
0 789 "Ami Pro Backup Is Now Copying {8} To The B:\ Drive."
0 803 "{8}" "B:\{8}"
10 00000466
6 7
5 0
18 0
11 00000896
6 6
8 8
6 4
7 "1"
18 0
11 00001010
0 789 "Ami Pro Backup Is Now Copying {8} To The A:\ Drive."
0 803 "{8}" "A:\{8}"
6 5
7 "1"
18 0
11 00001124
0 789 "Ami Pro Backup Is Now Copying {8} To The B:\ Drive."
0 803 "{8}" "B:\{8}"
0 296 0
0 789 ""
0 2 "Would you like to backup anymore files?" "Backup Complete!"
13
8 9
6 9
5 1
18 0
11 00001260
10 00000027
6 0
15
9
14 GetSize
20 00000807
19 00000807
0 42 "{0}" 8001
13
8 3
6 3
7 ""
18 0
11 00000106
6 2
15
9
6 3
8 4
0 808 1 "{4}" " "
13
8 5
6 5
5 0
18 1
11 00000326
6 6
5 1
3 0
8 6
6 5
5 1
3 1
0 806 "{4}" [X]
13
8 7
0 14 "{4}"
13
6 5
3 1
0 807 "{4}" [X]
13
8 8
0 16 "{7}" "{8}"
13
8 4
10 00000116
6 6
5 1
3 0
8 6
0 290
13
8 9
6 6
5 9
18 3
11 00000487
0 3 "You have selected more than 9 files. Please deselect a file." "Ami Pro Backup"
5 9
8 6
5 1
8 10
6 6
6 10
18 2
12 00000576
10 00000807
5 1
6 10
3 0
8 10
10 00000498
0 808 1 "{3}" " "
13
8 5
6 5
5 1
3 1
0 806 "{3}" [X]
13
8 11
0 14 "{3}"
13
6 5
3 1
0 807 "{3}" [X]
13
8 3
0 259 "{9}{11}" "r"
13
8 12
0 263 "{12}" 0 2
6 1
0 262 "{12}"
13
3 0
8 1
0 260 "{12}"
10 00000541
0 260 "{12}"
0 43 "{0}" 1005 "{1}"
6 2
15
9
DIALOG Backup
-2134376448 11 98 54 198 142 "" "" "Ami Pro File Backup Options"
3 16 54 89 9001 1352728587 "listbox" "" 0
153 7 40 14 1 1342373889 "button" "OK" 0
153 27 40 14 2 1342373888 "button" "Cancel" 0
60 17 40 12 20 1342242825 "button" "Drive A:" 0
60 29 38 12 21 1342242825 "button" "Drive B:" 0
60 6 36 10 1000 1342177280 "static" "Backup to:" 0
62 45 131 27 1001 1342177280 "static" "Choose your files to backup and then choose OK. You cannot choose more than nine files at a time." 0
3 5 40 10 1004 1342177280 "static" "Files:" 0
4 108 188 30 8001 1342177280 "static" "" 0
80 78 70 10 1002 1342177280 "static" "Total Bytes Selected:" 0
153 74 42 12 1005 1350631552 "edit" "" 0
00007466