Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Обсуждение темы "Обмен кнопками" 
Author Message
Flasher



PostPosted: Wed Feb 16, 2011 12:48    Post subject: Reply with quote

happywanderer
Первый вариант - для всех, второй - для текущего юзера. А как надо было?
Для обратных:
Code:
' Вкключить иконки, вызов меню и запись на Рабочий стол
With CreateObject("WScript.Shell")
P = "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\"
.RegWrite P & "ActiveDesktop\NoAddingComponents",0,"REG_DWORD"
.RegWrite P & "ActiveDesktop\NoComponents",0,"REG_DWORD"
.RegWrite P & "Explorer\NoDesktop",0,"REG_DWORD"
End With
Code:
' Разрешить запись на Рабочий стол
With CreateObject("WScript.Shell")
Name = Array("%USERPROFILE%\Desktop","%USERPROFILE%\Рабочий стол",_
"%ALLUSERSPROFILE%\Desktop","%ALLUSERSPROFILE%\Рабочий стол","%PUBLIC%\Desktop")
User=.ExpandEnvironmentStrings("%USERNAME%")
  For Each N In Name
    .Run"cacls """&.ExpandEnvironmentStrings(N)&""" /G """&User&""":F /E",0
  Next
End With
happywanderer wrote:
кнопочку для ...
Скриптик.
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group