zoukankan      html  css  js  c++  java
  • windows shell命令和快捷命令

    windows shell命令和快捷命令

    //控制面板所有控制面板项管理工具   右键属性-->快捷方式-->目标 名含快捷键称如:  %windir%system32services.msc // 这下面的宏,貌似都能通过shell:调用
    // SHGetSpecialFolderLocation
    //
    //  Caller should use SHGetMalloc to obtain an allocator that can free the pidl
    //
    // registry entries for special paths are kept in :
    #define REGSTR_PATH_SPECIAL_FOLDERS     REGSTR_PATH_EXPLORER TEXT("\Shell Folders")
     
     
    #define CSIDL_DESKTOP                   0x0000        // <desktop>
    #define CSIDL_INTERNET                  0x0001        // Internet Explorer (icon on desktop)
    #define CSIDL_PROGRAMS                  0x0002        // Start MenuPrograms
    #define CSIDL_CONTROLS                  0x0003        // My ComputerControl Panel
    #define CSIDL_PRINTERS                  0x0004        // My ComputerPrinters
    #define CSIDL_PERSONAL                  0x0005        // My Documents
    #define CSIDL_FAVORITES                 0x0006        // <user name>Favorites
    #define CSIDL_STARTUP                   0x0007        // Start MenuProgramsStartup
    #define CSIDL_RECENT                    0x0008        // <user name>Recent
    #define CSIDL_SENDTO                    0x0009        // <user name>SendTo
    #define CSIDL_BITBUCKET                 0x000a        // <desktop>Recycle Bin
    #define CSIDL_STARTMENU                 0x000b        // <user name>Start Menu
    #define CSIDL_MYDOCUMENTS               CSIDL_PERSONAL //  Personal was just a silly name for My Documents
    #define CSIDL_MYMUSIC                   0x000d        // "My Music" folder
    #define CSIDL_MYVIDEO                   0x000e        // "My Videos" folder
    #define CSIDL_DESKTOPDIRECTORY          0x0010        // <user name>Desktop
    #define CSIDL_DRIVES                    0x0011        // My Computer
    #define CSIDL_NETWORK                   0x0012        // Network Neighborhood (My Network Places)
    #define CSIDL_NETHOOD                   0x0013        // <user name>
    ethood
    #define CSIDL_FONTS                     0x0014        // windowsfonts
    #define CSIDL_TEMPLATES                 0x0015
    #define CSIDL_COMMON_STARTMENU          0x0016        // All UsersStart Menu
    #define CSIDL_COMMON_PROGRAMS           0X0017        // All UsersStart MenuPrograms
    #define CSIDL_COMMON_STARTUP            0x0018        // All UsersStartup
    #define CSIDL_COMMON_DESKTOPDIRECTORY   0x0019        // All UsersDesktop
    #define CSIDL_APPDATA                   0x001a        // <user name>Application Data
    #define CSIDL_PRINTHOOD                 0x001b        // <user name>PrintHood
     
    #ifndef CSIDL_LOCAL_APPDATA
    #define CSIDL_LOCAL_APPDATA             0x001c        // <user name>Local SettingsApplicaiton Data (non roaming)
    #endif // CSIDL_LOCAL_APPDATA
     
    #define CSIDL_ALTSTARTUP                0x001d        // non localized startup
    #define CSIDL_COMMON_ALTSTARTUP         0x001e        // non localized common startup
    #define CSIDL_COMMON_FAVORITES          0x001f
     
    #ifndef _SHFOLDER_H_
    #define CSIDL_INTERNET_CACHE            0x0020
    #define CSIDL_COOKIES                   0x0021
    #define CSIDL_HISTORY                   0x0022
    #define CSIDL_COMMON_APPDATA            0x0023        // All UsersApplication Data
    #define CSIDL_WINDOWS                   0x0024        // GetWindowsDirectory()
    #define CSIDL_SYSTEM                    0x0025        // GetSystemDirectory()
    #define CSIDL_PROGRAM_FILES             0x0026        // C:Program Files
    #define CSIDL_MYPICTURES                0x0027        // C:Program FilesMy Pictures
    #endif // _SHFOLDER_H_
     
    #define CSIDL_PROFILE                   0x0028        // USERPROFILE
    #define CSIDL_SYSTEMX86                 0x0029        // x86 system directory on RISC
    #define CSIDL_PROGRAM_FILESX86          0x002a        // x86 C:Program Files on RISC
     
    #ifndef _SHFOLDER_H_
    #define CSIDL_PROGRAM_FILES_COMMON      0x002b        // C:Program FilesCommon
    #endif // _SHFOLDER_H_
     
    #define CSIDL_PROGRAM_FILES_COMMONX86   0x002c        // x86 Program FilesCommon on RISC
    #define CSIDL_COMMON_TEMPLATES          0x002d        // All UsersTemplates
     
    #ifndef _SHFOLDER_H_
    #define CSIDL_COMMON_DOCUMENTS          0x002e        // All UsersDocuments
    #define CSIDL_COMMON_ADMINTOOLS         0x002f        // All UsersStart MenuProgramsAdministrative Tools
    #define CSIDL_ADMINTOOLS                0x0030        // <user name>Start MenuProgramsAdministrative Tools
    #endif // _SHFOLDER_H_
     
    #define CSIDL_CONNECTIONS               0x0031        // Network and Dial-up Connections
    #define CSIDL_COMMON_MUSIC              0x0035        // All UsersMy Music
    #define CSIDL_COMMON_PICTURES           0x0036        // All UsersMy Pictures
    #define CSIDL_COMMON_VIDEO              0x0037        // All UsersMy Video
    #define CSIDL_RESOURCES                 0x0038        // Resource Direcotry
     
    #ifndef _SHFOLDER_H_
    #define CSIDL_RESOURCES_LOCALIZED       0x0039        // Localized Resource Direcotry
    #endif // _SHFOLDER_H_
     
    #define CSIDL_COMMON_OEM_LINKS          0x003a        // Links to All Users OEM specific apps
    #define CSIDL_CDBURN_AREA               0x003b        // USERPROFILELocal SettingsApplication DataMicrosoftCD Burning
    // unused                               0x003c
    #define CSIDL_COMPUTERSNEARME           0x003d        // Computers Near Me (computered from Workgroup membership)
     
    #ifndef _SHFOLDER_H_
    #define CSIDL_FLAG_CREATE               0x8000        // combine with CSIDL_ value to force folder creation in SHGetFolderPath()
    #endif // _SHFOLDER_H_
     
    #define CSIDL_FLAG_DONT_VERIFY          0x4000        // combine with CSIDL_ value to return an unverified folder path
    #define CSIDL_FLAG_DONT_UNEXPAND        0x2000        // combine with CSIDL_ value to avoid unexpanding environment variables
    #if (NTDDI_VERSION >= NTDDI_WINXP)
    #define CSIDL_FLAG_NO_ALIAS             0x1000        // combine with CSIDL_ value to insure non-alias versions of the pidl
    #define CSIDL_FLAG_PER_USER_INIT        0x0800        // combine with CSIDL_ value to indicate per-user init (eg. upgrade)
    #endif  // NTDDI_WINXP
    #define CSIDL_FLAG_MASK                 0xFF00        // mask for all possible flag values
     
    _Check_return_
    STDAPI SHGetSpecialFolderLocation(_Reserved_ HWND hwnd, _In_ int csidl, _Outptr_ PIDLIST_ABSOLUTE *ppidl);
     
    SHSTDAPI_(PIDLIST_ABSOLUTE) SHCloneSpecialIDList(_Reserved_ HWND hwnd, _In_ int csidl, _In_ BOOL fCreate);
    _Success_(return != 0)
    SHSTDAPI_(BOOL) SHGetSpecialFolderPathA(_Reserved_ HWND hwnd, _Out_writes_(MAX_PATH) LPSTR pszPath, _In_ int csidl, _In_ BOOL fCreate);
    _Success_(return != 0)
    SHSTDAPI_(BOOL) SHGetSpecialFolderPathW(_Reserved_ HWND hwnd, _Out_writes_(MAX_PATH) LPWSTR pszPath, _In_ int csidl, _In_ BOOL fCreate);
    #ifdef UNICODE
    #define SHGetSpecialFolderPath  SHGetSpecialFolderPathW
    #else
    #define SHGetSpecialFolderPath  SHGetSpecialFolderPathA
    #endif // !UNICODE

    一.win+(X)

     

     

     

    其中win不会不知道吧,X为代码!

     

     

     

    (1)Win+L: 锁定当前用户.

     

     

     

    (2)Win+E: 资源管理器.

     

     

     

    (3)Win+R: 运行.

     

     

     

    (4)Win+G: (Gadgets)顺序切换边栏小工具.

     

     

     

    (5)(5)Win+U: 轻松访问中心.

     

     

     

    (6)(6)Win+X: Windows移动中心.

     

     

     

    (7)Win+Tab: 启用3D窗口切换.

     

     

     

    (8)Ctrl+Win+Tab: 用键盘控制Flip 3D窗口切换其中有个停顿效果.可以有足够的时间进

     

     

     

    行选择!

     

     

     

    (9)Win+break: 开启系统属性窗口.

     

     

     

    二.Shell:command (外壳命令行)

     

     

     

    以“Shell+冒号+命令”的格式,打开各种外壳文件夹:

     

     

     

    (1)shell:AddNewProgramsFolder

     

     

     

    (2)shell:Administrative Tools

     

     

     

    (3)shell:AppData

     

     

     

    (4)shell:AppUpdatesFolder

     

     

     

    (5)shell:Cache

     

     

     

    (6)shell:CD Burning

     

     

     

    (7)shell:ChangeRemoveProgramsFolder

     

     

     

    (8)shell:Common Administrative Tools

     

     

     

    (9)shell:Common AppData

     

     

     

    (10)shell:Common Desktop

     

     

     

    (11)shell:Common Documents

     

     

     

    (12)shell:Common Programs

     

     

     

    (13)shell:Common Start Menu

     

     

     

    (14)shell:Common Startup

     

     

     

    (15)shell:Common Templates

     

     

     

    (16)shell:CommonDownloads

     

     

     

    (17)shell:CommonMusic

     

     

     

    (18)shell:CommonPictures

     

     

     

    (19)shell:CommonVideo

     

     

     

    (20)shell:ConflictFolder

     

     

     

    (21)shell:ConnectionsFolder

     

     

     

    (22)shell:Contacts

     

     

     

    (23)shell:ControlPanelFolder

     

     

     

    (24)shell:Cookies

     

     

     

    (25)shell:CredentialManager

     

     

     

    (26)shell:CryptoKeys

     

     

     

    (27)shell:CSCFolder

     

     

     

    (28)shell:Default Gadgets

     

     

     

    (29)shell:Desktop

     

     

     

    (30)shell:Downloads

     

     

     

    (31)shell:DpapiKeys

     

     

     

    (32)shell:Favorites

     

     

     

    (33)shell:Fonts

     

     

     

    (34)shell:Gadgets

     

     

     

    (35)shell:Games

     

     

     

    (36)shell:GameTasks

     

     

     

    (37)shell:History

     

     

     

    (38)shell:InternetFolder

     

     

     

    (39)shell:Links

     

     

     

    (40)shell:Local AppData

     

     

     

    (41)shell:LocalAppDataLow

     

     

     

    (42)shell:LocalizedResourcesDir

     

     

     

    (43)shell:MAPIFolder

     

     

     

    (44)shell:My Music

     

     

     

    (45)shell:My Pictures

     

     

     

    (46)shell:My Video

     

     

     

    (47)shell:MyComputerFolder

     

     

     

    (48)shell:NetHood

     

     

     

    (49)shell:NetworkPlacesFolder

     

     

     

    (50)shell:OEM Links

     

     

     

    (51)shell:Original Images

     

     

     

    (52)shell:Personal

     

     

     

    (53)shell:PhotoAlbums

     

     

     

    (54)shell:Playlists

     

     

     

    (55)shell:PrintersFolder

     

     

     

    (56)shell:PrintHood

     

     

     

    (57)shell:Profile

     

     

     

    (58)shell:ProgramFiles

     

     

     

    (59)shell:ProgramFilesCommon

     

     

     

    (60)shell:ProgramFilesCommonX86

     

     

     

    (61)shell:ProgramFilesX86

     

     

     

    (62)shell:Programs

     

     

     

    (63)shell:Public

     

     

     

    (64)shell:PublicGameTasks

     

     

     

    (65)shell:Quick Launch

     

     

     

    (66)shell:Recent

     

     

     

    (67)shell:RecycleBinFolder

     

     

     

    (68)shell:ResourceDir

     

     

     

    (69)shell:SampleMusic

     

     

     

    (70)shell:SamplePictures

     

     

     

    (71)shell:SamplePlaylists

     

     

     

    (72)shell:SampleVideos

     

     

     

    (73)shell:SavedGames

     

     

     

    (74)shell:Searches

     

     

     

    (75)shell:SendTo

     

     

     

    (76)shell:Start Menu

     

     

     

    (77)shell:Startup

     

     

     

    (78)shell:SyncCenterFolder

     

     

     

    (79)shell:SyncResultsFolder

     

     

     

    (80)shell:SyncSetupFolder

     

     

     

    (81)shell:System

     

     

     

    (82)shell:SystemCertificates

     

     

     

    (83)shell:SystemX86

     

     

     

    (84)shell:Templates

     

     

     

    (85)shell:TreePropertiesFolder

     

     

     

    (86)shell:UserProfiles

     

     

     

    (87)shell:UsersFilesFolder

     

     

     

    (88)shell:Windows

     

     

     

    .MMC(管理控制台)功能的快速开启:

     

     

     

    (1)compmgmt.msc 计算机管理控制台

     

     

     

    (2)devmgmt.msc 设备管理器控制台

     

     

     

    (3)diskmgmt.msc 磁盘管理器控制台

     

     

     

    (4)eventvwr.msc 日志管理器控制台

     

     

     

    (5)fsmgmt.msc 共享文件夹控制台

     

     

     

    (6)gpedit.msc 组策略管理控制台

     

     

     

    (7)iis6.msc iis管理控制台

     

     

     

    (8)lusrmgr.msc 本地账户管理控制台

     

     

     

    (9)napclcfg.msc NAP管理控制台

     

     

     

    (10)printmanagement.msc 打印管理控制台

     

     

     

    (11)rsop.msc 组策略结果集控制台

     

     

     

    (12)services.msc 服务管理控制台

     

     

     

    (13)wf.msc 防火墙管理控制台

     

     

     

    .快速开启功能篇:

     

     

     

    (1)appwiz.cpl 开启添加删除程序

     

     

     

    (2)Control Pannel(控制面板)

     

     

     

    (3)collab.cpl 网络邻居登陆设置

     

     

     

    (4)desk.cpl 显示设置

     

     

     

    (5)firewall.cpl 防火墙设置

     

     

     

    (6)hdwwiz.cpl 硬件添加向导

     

     

     

    (7)inetcpl.cpl Internet属性设置

     

     

     

    (8)intl.cpl 区域和语言选项设置

     

     

     

    (9)main.cpl 鼠标属性设置

     

     

     

    (10)mmsys.cpl 声音设置

     

     

     

    (11)ncpa.cpl 网络连接

     

     

     

    (12)Ncpa.cpl 开启网络连接

     

     

     

    (13)powercfg.cpl 电源选项

     

     

     

    (14)sysdm.cpl 系统属性

     

     

     

    (15)wscui.cpl 安全中心

     

     

     

    .用户功能篇:

     

     

     

    (1)control.exe /name microsoft.folderoptions 启动资源管理器的文件夹属性选项卡

     

     

     

    (2)control.exe /name Microsoft.AddHardware 控制面板所有控制面板项设备和打印机

     

     

     

    (3)control.exe /name Microsoft.AdministrativeTools 控制面板所有控制面板项管理工具

     

     

     

    (4)control.exe /name Microsoft.PeopleNearMe 网络邻居

     

     

     

    (5)control.exe /name Microsoft.AudioDevicesAndSoundThemes 声音

     

     

     

    (6)control.exe /name Microsoft.AutoPlay 控制面板所有控制面板项自动播放

     

     

     

    (7)control.exe /name Microsoft.Personalization 控制面板所有控制面板项个性化

     

     

     

    (8)control.exe /name Microsoft.BackupAndRestoreCenter 控制面板所有控制面板项备份和还原

     

     

     

    (9)control.exe /name Microsoft.PhoneAndModemOptions 设置电话和调制调解器的连接向导:位置信息

     

     

     

    (10)control.exe /name Microsoft.BitLockerDriveEncryption 控制面板所有控制面板项BitLocker 驱动器加密

     

     

     

    (11)control.exe /name Microsoft.Printers 控制面板所有控制面板项设备和打印机

     

     

     

    (12)control.exe /name Microsoft.ColorManagement 颜色管理

     

     

     

    (13)control.exe /name Microsoft.ProgramsAndFeatures 控制面板所有控制面板项程序和功能:添加/删除程序

     

     

     

    (14)control.exe /name Microsoft.DateAndTime 日期和时间

     

     

     

    (15)control.exe /name Microsoft.DefaultPrograms 控制面板所有控制面板项默认程序

     

     

     

    (16)control.exe /name Microsoft.DeviceManager 设备管理器

     

     

     

    (17)control.exe /name Microsoft.SecurityCenter 安全中心:控制面板所有控制面板项操作中心

     

     

     

    (18)control.exe /name Microsoft.SyncCenter 控制面板所有控制面板项同步中心

     

     

     

    (19)control.exe /name Microsoft.Fonts 控制面板所有控制面板项字体

     

     

     

    (20)control.exe /name Microsoft.System 控制面板所有控制面板项系统:查看Windows版本等

     

     

     

    (21)control.exe /name Microsoft.GameControllers 游戏控制器

     

     

     

    (22)control.exe /name Microsoft.GetPrograms 控制面板程序获得程序

     

     

     

    (23)control.exe /name Microsoft.TaskbarAndStartMenu 任务栏和“开始”菜单属性

     

     

     

    (24)control.exe /name http://www.wendangku.net/doc/b55446273c1ec5da50e270ca.html erAccounts 控制面板所有控制面板项用户帐户

     

     

     

    (25)control.exe /name Microsoft.WelcomeCenter 控制面板所有控制面板项入门

     

     

     

    (26)control.exe /name Microsoft.iSCSIInitiator iSCSI 发起程序属性

     

     

     

    (27)control.exe /name Microsoft.WindowsDefender 启动Windows Defender

     

     

     

    (28)control.exe /name Microsoft.Keyboard 启动键盘属性对话框

     

     

     

    (29)control.exe /name Microsoft.WindowsFirewall 控制面板所有控制面板项Windows 防火墙

     

     

     

    (30)control.exe /name Microsoft.MobilityCenter Windows 移动中心

     

     

     

    (31)control.exe /name Microsoft.Mouse 鼠标属性

     

     

     

    (32)control.exe /name http://www.wendangku.net/doc/b55446273c1ec5da50e270ca.html workAndSharingCenter 控制面板所有控制面板项网络和共享中心

     

     

     

    (33)control.exe /name Microsoft.WindowsUpdate 控制面板所有控制面板项WindowsUpdate

     

     

     

    (34)control.exe /name Microsoft.OfflineFiles 脱机文件

     

     

     

    (35)control.exe /name Microsoft.ParentalControls 控制面板所有控制面板项家长控制

     

     

     

    .系统工具的快速启用

     

     

     

    (1)osk.exe 启用屏幕键盘

     

     

     

    (2)msconfig.exe 系统启动设置工具,其中包含启用,关闭UAC功能

     

     

     

    (3)notepad.exe 打开记事本

     

     

     

    (4)mspaint.exe 打开画笔

     

     

     

    (5)explorer.exe 启用资源管理器

     

     

     

    (6)cmd.exe 启用命令行窗口

     

     

     

    (7)SystemPropertiesAdvanced.exe“系统属性”->“高级”

     

     

     

    (8)SystemPropertiesComputerName.exe“系统属性”->“计算机名”

     

     

     

    (9)SystemPropertiesDataExecutionPrevention.exe“系统属性”->“数据执行保护”

     

     

     

    (10)SystemPropertiesHardware.exe“系统属性”->“硬件”

     

     

     

    (11)SystemPropertiesPerformance.exe“系统属性”->“性能选项”

     

     

     

    (12)SystemPropertiesProtection.exe “系统属性”->“系统保护”

     

     

     

    (13)SystemPropertiesRemote.exe “系统属性”->“远程”

     

     

     

    .其他常用命令行

     

     

     

    (1)winver 检查Windows版本

     

     

     

    (2)wiaacmgr 扫描仪和照相机向导

     

     

     

    (3)cmd CMD命令提示符

     

     

     

    (4)command CMD命令提示符

     

     

     

    (5)nslookup IP地址侦测器

     

     

     

    (6)osk 打开屏幕键盘

     

     

     

    (7)calc 启动计算器

     

     

     

    (8)charmap 启动字符映射表

     

     

     

    (9)cliconfg SQLSERVER客户端网络实用程序

     

     

     

    (10)control 打开控制面板:控制面板所有控制面板项

     

     

     

    (11)msconfig 系统配置实用程序

     

     

     

    (12)mplayer2 简易widnows media player 媒体播放机

     

     

     

    (13)mspaint 画图板

     

     

     

    (14)shutdown 关机命令(详细请在cmd中输入shutdown/?)

     

     

     

    (15)mobsync 控制面板所有控制面板项同步中心

     

     

     

    (16)dxdiag 检查directx信息,还可以查看系统基本配置信息

     

     

     

    (17)dcomcnfg 打开系统组件服务

     

     

     

    (18)sysedit 系统配置编辑器

     

     

     

    (19)sigverif 文件签名验证程序

     

     

     

    (20)SoundRecorder 系统自带录音机

     

     

     

    (21)SnippingTool 系统自带截图工具

     

     

     

    (22)odbcad32 ODBC数据源管理器

     

     

     

    (23)syskey 系统加密,一旦加密就不能解开,保护windows 7系统的双重密码

     

     

     

    (24)sfc /scannow 需要管理员权限启动cmd,在DOS窗口中进行系统扫描。windows文件保护

     

     

     

    (25)cleanmgr 垃圾整理

     

     

     

    (26)dvdplay DVD播放器(Windows Media Player)

     

     

     

    (27)eventvwr 一个事情查看器

     

     

     

    (28)eudcedit 造字程序:专用字符编辑程序

     

     

     

    (29)explorer 打开资源管理器

     

     

     

    (30)shrpubw 共享文件夹设置工具:创建共享文件向导

     

     

     

    (31)mmc 打开控制台

     

     

     

    (32)iexpress 系统自带安装程序制作工具

     

     

     

    (33)logoff -注销命令

     

     

     

    (34)mem.exe 显示内存使用情况(先要运行cmd,进入DOS命令窗口)

     

     

     

    (35)migwiz -文件转移向导

     

     

     

    (36)mstsc –远程桌面连接

     

     

     

    (37)magnify 放大镜实用程序

     

     

     

    (38)notepad 打开记事本

     

     

     

    (39)wordpad 写字板

     

     

     

    (40)write 写字板

     

     

     

    (41)wuapp 控制面板所有控制面板项Windows Update

     

     

     

    (42)regedit 注册表编辑器

     

     

     

    (43)regedt32 注册表编辑器

     

     

     

    (44)narrator 屏幕“讲述人”

     

     

     

    (45)rsop.msc 组策略结果集

     

     

     

    (46)regsvr32/? 调用、卸载DLL文件运行(详细请在cmd中输入regsvr32/?)

     

     

     

    (47)taskmgr 任务管理器

     

     

     

    (48)wscript windows脚本宿主设置

    参考:

    windows shell命令 和 快捷命令 - 乘于时 - 博客园 

    Windows 命令 | Microsoft Docs https://docs.microsoft.com/zh-cn/windows-server/administration/windows-commands/windows-commands

    奶奶问孙子:4+1等于几 孙子说:等于6-1。 奶奶说:你明明知道答案,为什么不说? 孙子说:年轻人不讲5的……..
  • 相关阅读:
    iframe引入网页
    input同名
    混合框架
    <header><footer>引用
    <dl>
    凸包性质——cf1044C
    几何求叉积+最短路——cf1032D
    fresco 设置资源路径时的一个坑
    马拉车+贪心——cf1326D
    【模板变形】凸壳二分+斜率优化dp——cf1083E
  • 原文地址:https://www.cnblogs.com/jasy/p/14493035.html
Copyright © 2011-2022 走看看