본문 바로가기

Computer (컴퓨터)/ETC... (기타 등등)

프로그래밍 - Autoit 오토잇 백업 복구 NPKI / 즐겨찾기 ( FAVORITES / Backup / Restore / 복원 )

728x90
반응형


 프로그래밍 - Autoit 오토잇 백업 복구 NPKI / 즐겨찾기 ( FAVORITES / Backup / Restore / 복원 )



BackUtile.au3


BackUtile.exe




AutoIt 오토잇 - 백업프로그램



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
 
#include <GuiConstantsEx.au3>
#include <ButtonConstants.au3>
 
Opt("GUIOnEventMode"1)
$mainwindow = GUICreate("Backup UTIL"240240)
GUISetOnEvent($GUI_EVENT_CLOSE, "CLOSEClicked")
 
GUICtrlCreateGroup("[DATA BackUp]"2020,200,200)
   $NPKI = GUICtrlCreateCheckbox("NPKI"4060)
     GUICtrlSetState(-1, $GUI_CHECKED)
 
   $FAVORITES= GUICtrlCreateCheckbox("즐겨찾기"4080)
     GUICtrlSetState(-1, $GUI_CHECKED)
 
   $BACKUP_btn = GUICtrlCreateButton("▶▶백업"4012010030,$BS_AUTORADIOBUTTON)
   GUICtrlSetOnEvent($BACKUP_btn, "Backup")
 
   $Restore_btn = GUICtrlCreateButton("복구◁◁"4016010030,$BS_AUTORADIOBUTTON)
   GUICtrlSetOnEvent($Restore_btn, "Restore")
 
GUICtrlCreateGroup(""-99-9911) ;close group
 
GUISetState(@SW_SHOW)
 
While 1
  Sleep(1000)  ; Idle around
WEnd
 
Func Backup()
   if GUICtrlRead($NPKI) = 1 then
     DirCopy(@UserProfileDir&"\AppData\LocalLow\NPKI"".\NPKI"1)
     DirCopy(@ProgramFilesDir&"\NPKI"".\NPKI"1)
   EndIf
 
   if GUICtrlRead($FAVORITES) = 1 then
      DirCopy(@favoritesdir,".\FAVORITES\", 1)
   EndIf
EndFunc
Func Restore()
   DirCopy(".\FAVORITES", @favoritesdir, 1)
   DirCopy(".\NPKI", @ProgramFilesDir&"\NPKI", 1)
   DirCopy(".\NPKI", @UserProfileDir&"\AppData\LocalLow\NPKI", 1)
EndFunc
Func CLOSEClicked()
   Exit
EndFunc
cs




728x90
반응형