mirror of
https://github.com/moudey/Shell.git
synced 2026-11-16 09:04:25 +08:00
Update file-manage.nss
This commit is contained in:
1 parent
f6c40e21a1
commit
1d6edc0538
1 file changed
+16
-16
@@ -1,4 +1,4 @@
|
||||
menu(where=sel.count>0 type='file|dir|drive|namespace|back' mode="multiple" title='파일 관리' image=\uE253)
|
||||
menu(where=sel.count>0 type='file|dir|drive|namespace|back' mode="multiple" title='파일 관리' image=\uE253)
|
||||
{
|
||||
menu(separator="after" title=title.copy_path image=icon.copy_path)
|
||||
{
|
||||
@@ -13,16 +13,16 @@
|
||||
item(mode="single" type='file' where=sel.file.ext.len>0 title=sel.file.ext cmd=command.copy(sel.file.ext))
|
||||
}
|
||||
|
||||
item(mode="single" type="file" title="확장자 변경" image=\uE0B5 cmd=if(input("Change extension", "Type extension"),
|
||||
item(mode="single" type="file" title="확장자 변경" image=\uE0B5 cmd=if(input("Change extension", "Type extension"),
|
||||
io.rename(sel.path, path.join(sel.dir, sel.file.title + "." + input.result))))
|
||||
|
||||
|
||||
menu(separator="after" image=\uE290 title=title.select)
|
||||
{
|
||||
item(title="모두" image=icon.select_all cmd=command.select_all vis=label)
|
||||
item(title="반전" image=icon.invert_selection cmd=command.invert_selection vis=label)
|
||||
item(title="없음" image=icon.select_none cmd=command.select_none vis=label)
|
||||
item(title="모두" image=icon.select_all cmd=command.select_all)
|
||||
item(title="반전" image=icon.invert_selection cmd=command.invert_selection)
|
||||
item(title="없음" image=icon.select_none cmd=command.select_none)
|
||||
}
|
||||
|
||||
|
||||
item(type='file|dir|back.dir|drive' title='소유권 획득' image=[\uE194,#f00] admin
|
||||
cmd args='/K takeown /f "@sel.path" @if(sel.type==1,null,"/r /d y") && icacls "@sel.path" /grant *S-1-5-32-544:F @if(sel.type==1,"/c /l","/t /c /l /q")')
|
||||
separator
|
||||
@@ -32,18 +32,18 @@
|
||||
item(title="파일 이름 확장자" image=icon.show_file_extensions cmd='@command.toggleext')
|
||||
}
|
||||
|
||||
menu(type='file|dir|back.dir' mode="single" title='속성' image=icon.properties)
|
||||
menu(type='file|dir|back.dir' mode="single" title='속성')
|
||||
{
|
||||
$atrr = io.attributes(sel.path)
|
||||
item(title='숨김' checked=io.attribute.hidden(atrr)
|
||||
cmd args='/c ATTRIB @if(io.attribute.hidden(atrr),"-","+")H "@sel.path"' window=hidden)
|
||||
|
||||
|
||||
item(title='시스템' checked=io.attribute.system(atrr)
|
||||
cmd args='/c ATTRIB @if(io.attribute.system(atrr),"-","+")S "@sel.path"' window=hidden)
|
||||
|
||||
|
||||
item(title='읽기 전용' checked=io.attribute.readonly(atrr)
|
||||
cmd args='/c ATTRIB @if(io.attribute.readonly(atrr),"-","+")R "@sel.path"' window=hidden)
|
||||
|
||||
|
||||
item(title='보관 가능' checked=io.attribute.archive(atrr)
|
||||
cmd args='/c ATTRIB @if(io.attribute.archive(atrr),"-","+")A "@sel.path"' window=hidden)
|
||||
separator
|
||||
@@ -63,18 +63,18 @@
|
||||
menu(separator="before" title='새 폴더' image=icon.new_folder)
|
||||
{
|
||||
item(title='날짜 시간' cmd=io.dir.create(sys.datetime("ymdHMSs")))
|
||||
item(title='가이드' cmd=io.dir.create(str.guid))
|
||||
item(title='Guid' cmd=io.dir.create(str.guid))
|
||||
}
|
||||
|
||||
|
||||
menu(title='새 파일' image=icon.new_file)
|
||||
{
|
||||
$dt = sys.datetime("ymdHMSs")
|
||||
item(title='TXT' cmd=io.file.create('@(dt).txt', 'Hello World!'))
|
||||
item(title='XML' cmd=io.file.create('@(dt).xml', '<root>Hello World!</root>'))
|
||||
item(title='JSON' cmd=io.file.create('@(dt).json', '[]'))
|
||||
item(title='HTML' cmd=io.file.create('@(dt).html', "<html>\n\t<head>\n\t</head>\n\t<body>Hello World!\n\t</body>\n</html>"))
|
||||
item(title='HTML' cmd=io.file.create('@(dt).html', "<html>\n\t<head>\n\t</head>\n\t<body>Hello World!\n\t</body>\n</html>"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
item(where=!wnd.is_desktop title=title.folder_options image=icon.folder_options cmd=command.folder_options)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user