-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindAndReplaceForFiles.hta
94 lines (92 loc) · 4.93 KB
/
FindAndReplaceForFiles.hta
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<title>Find & Replace for Files and Folders</title>
<meta charset="UTF-8">
<HTA:APPLICATION
ID="renameFilesApp"
APPLICATIONNAME="Find & Replace for Files & Folders"
BORDER="thin" BORDERSTYLE="normal"
CAPTION="yes"
CONTEXTMENU="no"
ICON="assets/find_and_replace_filenames_icon.ico"
INNERBORDER="no"
MAXIMIZEBUTTON="yes"
MINIMIZEBUTTON="yes"
NAVIGABLE="yes"
SCROLL="no"
SCROLLFLAT="yes"
SHOWINTASKBAR="yes"
SINGLEINSTANCE="yes"
SYSMENU="yes"
VERSION="1.0"
WINDOWSTATE="0"
>
<link rel="stylesheet" type="text/css" href="assets/styles.css">
<script language="VBScript" src="base_vbs_script.vbs"></script>
</head>
<body onkeydown="CheckKeyPress">
<div class="container">
<h2>Find & Replace for Files and Folders</h2>
<div id="input_form">
<form name="PROCESS_FILE_NAMES">
<table width="95%" border="2" cellpadding="10px" cellspacing="5px">
<thead><strong>Enter Details:</strong></thead>
<br>
<tr>
<th>Name</th>
<th>Value</th>
<th>Options</th>
</tr>
<tr>
<td><label for="folderPath">Folder Path:</label></td>
<td><textarea style="overflow:hidden;" width="100%" rows="4" cols="55" id="folderPath"></textarea></td>
<td align="center"><input class="btn select-folder" id=selectFolderBtn type="button" value="Select Folder"
onClick=OpenFolderSelector()></td>
</tr>
<tr>
<td><label for="searchWord">Search Word:</label></td>
<td><input style="width:95%" width="100%" type="text" id="searchWord" required></td>
<td align="center"><input type="checkbox" class="checkbox" checked id="searchWordMatchCase">
<p style="font-size:8pt;font-style:italic;">(Disable to perform a case in-sensitive search)</p>
</td>
</tr>
<tr>
<td><label for="replaceWord">Replacement Word:</label></td>
<td><input style="width:95%" type="text" id="replaceWord" required></td>
<td></td>
</tr>
<tr>
<td><label for="fileExtension">File Extension:</label></td>
<td><input style="width:63%" type="text" id="fileExtension">
<p style="font-size:8pt;font-style:italic;">(Do not include [.] (DOT) with the file extension)</p>
</td>
<td align="center"><input type="checkbox" class="checkbox" id="changeExtension">
<p style="font-size:8pt;font-style:italic;">(Enable to change file extension)</p>
</td>
</tr>
<tr>
<td><label for="includeSubfolders">Search including Subfolders:</label></td>
<td><input type="checkbox" class="checkbox" id="includeSubfolders" onclick="subFolderCheckValue"></td>
<td align="center"><p style="font-size:8pt;font-style:italic;">(Enable recursive search inside subfolders)</p></td>
</tr>
<tr>
<td><label for="renameFolders">Include Subfolder Names:</label></td>
<td><input type="checkbox" class="checkbox" id="renameFolders" onclick="updateBtnNameOnClick" ></td>
<td align="center"><p style="font-size:8pt;font-style:italic;">(Replace folder names that matches the search)</p></td>
</tr>
<tr></tr>
<tr align="center">
<td colspan="3"><input class="btn search-btn" id="runbutton" type="button" value="Rename Files" onclick="RenameFiles()"></td>
</tr>
<!-- Hidden input fields to store custom properties -->
<input type="hidden" id="propToCheckSubFoldersUserClick" value="user_not_checked">
</table>
</form>
</div>
<div class="copyright align-center">Created with <img src="assets/heart-emoji.png" height="15pt" width="15pt" alt="love"> by <a href="#" data-url="https://github.com/binuavin/" onclick="openLink('https://github.com/binuavin/')">Binu Mon</a>.</div>
<div class="app-version align-center">v1.0 [Beta] (for Windows)</div>
</div>
<script language="JScript" type="text/javascript" src="assets/script.js"></script>
</body>
</html>