-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwarRenamer.au3
More file actions
37 lines (28 loc) · 1.27 KB
/
warRenamer.au3
File metadata and controls
37 lines (28 loc) · 1.27 KB
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
; #INDEX# =======================================================================================================================
; Title .........: warRenamer
; AutoIt Version : 3.3.14.5
; Description ...: rename .war files on current directory
; Author(s) .....: Simone Celia
; ===============================================================================================================================
#NoTrayIcon
#include <File.au3>
#include <FileConstants.au3>
#Region Global Variables and Constants
Global Const $WAR_EXTENSION = "*.war"
Global Const $APPEND_STRING = "A"
#EndRegion Global Variables and Constants
renameWarFiles()
#Region Functions list
; #FUNCTION# ====================================================================================================================
; Author ........: Simone Celia
; Modified.......: Simone Celia
; ===============================================================================================================================
Func renameWarFiles()
Local $aFileList = _FileListToArray (@ScriptDir, $WAR_EXTENSION, $FLTA_FILES, True)
If IsArray($aFileList) Then
For $i = 1 To $aFileList[0]
FileMove($aFileList[$i], $aFileList[$i] & $APPEND_STRING, $FC_NOOVERWRITE + $FC_CREATEPATH)
Next
EndIf
EndFunc
#EndRegion Functions list