Advertisement
Najeebsk

FILES-LISTS-MAKER.ahk

Mar 30th, 2023 (edited)
930
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; <COMPILER: v1.1.34.04>
  2. #NoEnv
  3. #SingleInstance, Force
  4. SetBatchLines, -1
  5. ;#NoTrayIcon
  6. SetWorkingDir %A_ScriptDir%  
  7. ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  8. FileCreateDir, %A_ScriptDir%\DATA
  9. FileInstall , FILES-LISTS-MAKER.ahk, %A_ScriptDir%\DATA\FILES-LISTS-MAKER.ahk, 1
  10. FileInstall , Milikymac.msstyles, %A_ScriptDir%\DATA\Milikymac.msstyles, 1
  11. FileInstall , USkin.dll, %A_ScriptDir%\DATA\USkin.dll, 1
  12. FileSetAttrib +HS, %A_ScriptDir%\DATA\FILES-LISTS-MAKER.ahk, 2
  13. FileSetAttrib +HS, %A_ScriptDir%\DATA\Milikymac.msstyles, 2
  14. FileSetAttrib +HS, %A_ScriptDir%\DATA\USkin.dll, 2
  15. FileSetAttrib +HS, %A_ScriptDir%\DATA, 2
  16. ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  17. SkinForm(Apply, A_ScriptDir . "\DATA\USkin.dll", A_ScriptDir . "\DATA\Milikymac.msstyles")
  18. OnExit, GetOut
  19. ;DIR=%A_WorkingDir%
  20. Gui,Add,ListView,r24 w600 ,IsFolder|Path|FullPath
  21.  
  22. Loop,%A_WorkingDir%\* ,1,1
  23.  
  24.     LV_Add("",FileExist(A_LoopFileFullPath)="D" ? "Folder" : "",A_LoopFileName, ""  A_LoopFileFullPath)
  25.  
  26. LV_ModifyCol(2)
  27.  
  28. LV_ModifyCol(1,"Center SortDesc")
  29. Gui,Add,Button,x10 y450 h20 w100 gSave,Current File Name
  30. Gui,Add,Button,x120 y450 h20 w100 gSave2,Save Full Path
  31. Gui,Add,Button,x230 y450 h20 w100 gSave3,Save File Name
  32. Gui,Add,Button,x340 y450 h20 w100 gSave4,Save File Hidden
  33. Gui,Show,, Najeeb Files and Folders List Maker
  34. Return
  35. Save:
  36. Gui,submit,nohide
  37. Run, %Comspec% /C DIR /B/A-D/OD %CD%\* >> FILE-CURRENT-LIST.txt,,hide
  38. Return
  39.  
  40. Save2:
  41. Gui,submit,nohide
  42. Run, %Comspec% /C DIR /S /B /A %CD%\* >> FULL-PATH-LIST.txt,,hide
  43. Return
  44.  
  45. Save3:
  46. Gui,submit,nohide
  47. Loop, %A_WorkingDir%\*.*, 1, 0
  48.     {
  49.         FileAppend, %A_LoopFileName%`n, FILES-LIST.txt
  50.         Loop, %A_LoopFileName%\*.*, 1, 0
  51.             {
  52.                 FileAppend, %A_TAB%%A_LoopFileName%`n, FILES-LIST.txt
  53.             }
  54.     }
  55. Return
  56. Save4:
  57. Gui,submit,nohide
  58. Run, %Comspec% /C DIR /S /AH %CD%\* >> FF-HIDDEN-LIST.txt,,hide
  59. Return
  60. ;=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  61. GetOut:
  62. GuiClose:
  63. Gui, Hide
  64. SkinForm(0)
  65. ExitApp
  66. return
  67.  
  68. SkinForm(Param1 = "Apply", DLL = "", SkinName = ""){
  69.     if(Param1 = Apply){
  70.         DllCall("LoadLibrary", str, DLL)
  71.         DllCall(DLL . "\USkinInit", Int,0, Int,0, AStr, SkinName)
  72.     }else if(Param1 = 0){
  73.         DllCall(DLL . "\USkinExit")
  74.         }
  75. }
  76.  
  77. ;=-=-=-=-=-=-=- END Script-=-=-=-=-=-=-=-=-
  78. #S::Suspend
  79. #P::Pause
  80. #R::Reload
  81. ESC::ExitApp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement