Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Copy a Flash Drive
#4
Yes. Example:
Function copy_new_drive
Code:
Copy      Help
;/exe
SetLastError 0
__Handle m=CreateMutex(0 1 "mutex_copy_new_drive")
if(!m) mes- "Error"
if(GetLastError=ERROR_ALREADY_EXISTS)
,if(mes("copy_new_drive already running. Do you want to end it?" "copy_new_drive" "YN?")='Y')
,,ShutDownProcess "copy_new_drive" 16 ;;this should end the older process, but need more testing
,mes 1
,ret

NewDriveWatcher 0 0 0 0

;BEGIN PROJECT
;main_function  copy_new_drive
;exe_file  $desktop$\copy_new_drive.exe
;icon  <default>
;manifest  $qm$\default.exe.manifest
;res  
;on_before  
;on_after  
;on_run  
;flags  6
;end_hotkey  0
;guid  {4C0516F5-0C9A-4BCE-9212-2F5CE04F4CFD}
;END PROJECT


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)