Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Script made by Baoulettes 11:02pm 5/09/2014
- ;Want to use? feel free just tell me thanks throught my mail : Joffrey.panisset@hotmail.com
- ;want to contact me ? feel free to mail me too :)
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- galleryname = Baoullery
- galid = 1
- id = 1
- FileDelete, %A_ScriptDir%\gallery.xml
- FileAppend, <?xml version="1.0" encoding="utf-8"?>`n<albums>`n<gallery id="%galleryname%" name="%galleryname%" path="gallery/%galleryname%/">`n, gallery.xml
- Loop, %A_WorkingDir%\Baoullery, 1, 0
- {
- Loop, %A_LoopFileName%\*.*, 1, 0
- {
- FileAppend, <image id=`"%id%`" thumb=`"%A_LoopFileName%`" img=`"%A_LoopFileName%`" title=`""%A_LoopFileName%`" ><description><![CDATA[]]></description></image>`n, gallery.xml
- id++
- }
- }
- FileAppend, </gallery>`n</albums>, gallery.xml
- Exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement