Advertisement
Najeebsk

CreateFileList.ahk

Aug 21st, 2022 (edited)
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. loop  %A_ScriptDir%\XP\*.*,,1 ;includes subfolders ;this folder includes your Program.exe, Program.csv, and your image subfolder with all your images in it.
  2.  {
  3.   SplitPath,A_LoopFileName,,,Ext
  4.   if (Ext = "png" or Ext = "jpg" or Ext = "exe")
  5.    FileAppend,FileInstall `, %a_loopFileLongPath%`,XP\%A_LoopfileName%`n,MyFileInstall.txt ;puts images in the image folder
  6.   else
  7.    FileAppend,FileInstall `, %a_loopFileLongPath%`,%A_LoopfileName%`n,MyFileInstall.txt ;puts everything else in the script folder
  8.  }
  9.  ;MyFileInstall.txt Add karein Script Mein
  10. ; IfNotExist, %A_ScriptDir%\XP
  11. ; FileCreateDir, %A_ScriptDir%\XP
  12. ; #Include, MyFileInstall.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement