1.0.4 • Published 6 years ago
win-explorer-custom-folder v1.0.4
win-explorer-custom-folder
A small JavaScript library that create a custom folder on windows explorer
explorerCustomFolder.createFolder('System', 'C:\\Windows', 'C:\\Windows\\explorer.exe')
.then(uuid => {
console.log(uuid)
})
.catch(err => {
console.log(err)
})
explorerCustomFolder.deleteFolder('80f022a0-f605-11e7-adcc-c1307da35532')
.then(uuid => {
console.log('delete ok')
})
.catch(err => {
console.log(err)
})
Parameters
createFolder(name, path, iconExePath, uuid)
name
- The name you are create, will be shown when you hover the mouse over the custom folder in File Explorer
path
- the full folder path
iconExePath (Optional)
- the folder icon from the iconExePath,if not set, use the default icon
uuid (Optional)
- the unique uuid of the folder, if not set, it will create a new uuid,if you need modify the folder, you need set the uuid last new
deleteFolder(uuid)