中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » nircmd 外部命令如何关闭音量控制里的某一项呢?
作者:
标题: nircmd 外部命令如何关闭音量控制里的某一项呢? 上一主题 | 下一主题
chainliq
高级用户

学无尽止


积分 635
发帖 244
注册 2006-4-15
来自 广西贵港
状态 离线
『楼 主』:  nircmd 外部命令如何关闭音量控制里的某一项呢?

nircmd 如何关闭音量控制里的某一项呢?比如要设置 Rear Pink IN 为静音.试过好多参数都不行,下面提nircmd 的一些中文件帮助



Open the door of J: CD-ROM drive 打开CD nircmd.exe cdrom open j:
Close the door of Y: CD-ROM drive 关闭CD nircmd.exe cdrom close y:
Increase the system volume by 2000 units (out of 65535)    提升音量 nircmd.exe changesysvolume 2000
Decrease the system volume by 5000 units (out of 65535)
降低音量 nircmd.exe changesysvolume -5000
Set the volume to the highest value 最高音量 nircmd.exe setsysvolume 65535
Mute the system volume 禁音 nircmd.exe mutesysvolume 1
Unmute the system volume 开声音 nircmd.exe mutesysvolume 0
Switch the system volume between the mute and normal state.
静音 nircmd.exe mutesysvolume 2
Turn off the monitor 关屏幕 nircmd.exe monitor off
Start the default screen saver 打开屏幕保护 nircmd.exe screensaver
Put your computer in 'standby' mode 进入待机状态 nircmd.exe standby
log off the current user 注销 nircmd.exe exitwin logoff
Ask if you want to reboot, and if you answer 'Yes', reboot the computer. 是否重起 nircmd.exe qboxcom "Do you want to reboot ?" "question" exitwin reboot
Turn off your computer 关机 nircmd.exe exitwin poweroff
Dial to "My Internet" connection 拔网连接 nircmd.exe rasdial "My Internet"
Disconnect the "My Internet" connection 断连接 nircmd.exe rashangup "My Internet"
Make your Internet Explorer windows 75% transparent ! (192 / 256) 让IE透明 nircmd.exe win trans ititle "internet explorer" 192
Minimize all your Internet Explorer windows
最小化全部IE窗口 nircmd.exe win min class "IEFrame"
Close all your Internet Explorer windows
关闭全部IE窗口 nircmd.exe win close class "IEFrame"
Close all your Explorer windows (My Computer, folders, and so on) 关闭全部Explorer窗口 nircmd.exe win close class "CabinetWClass"
Hide all your Internet Explorer windows
隐藏全部IE窗口 nircmd.exe win hide class "IEFrame"
Show all your Internet Explorer windows (after you made them hidden with previous example)
展现全部IE窗口 nircmd.exe win show class "IEFrame"
Center all top-level windows
集中全部窗口 nircmd.exe win center alltop
Remove the title bar of My Computer window.
移除我的电脑标题条 nircmd.exe win -style title "my computer" 0x00C00000
Return the title bar of My Computer window that we removed in the previous example.
返回上次操作 nircmd.exe win +style title "my computer" 0x00C00000
Create a shortcut on your desktop that closes all your Internet Explorer windows
在桌面上创建一个关闭所有IE窗口的快捷方式 nircmd.exe cmdshortcut " "~$folder.desktop$ "Close All IE" win close class "IEFrame"
Create a shortcut on your desktop that hides all your Internet Explorer windows
在桌面上创建一个隐藏所有IE窗口的快捷方式 nircmd.exe cmdshortcut " "~$folder.desktop$ "Hide All IE" win hide class "IEFrame"
Create a shortcut on your desktop that shows back all your Internet Explorer windows
在桌面上创建一个展现所有IE窗口的快捷方式 nircmd.exe cmdshortcut " "~$folder.desktop$ "Show All IE" win show class "IEFrame"
Hide the desktop window
隐藏桌面图标 nircmd.exe win hide class progman
Show the desktop window (After hiding it in previous example)
展现桌面上的图标 nircmd.exe win show class progman
Hide the start button on the system tray
隐藏开始按钮 nircmd.exe win child class "Shell_TrayWnd" hide class "button"
Show the start button on the system tray
在系统盘上展示开始按钮 nircmd.exe win child class "Shell_TrayWnd" show class "button"
Hide the clock on the system tray
隐藏任务栏上的时钟 nircmd.exe win child class "Shell_TrayWnd" hide class "TrayClockWClass"
Show the clock on the system tray
显示任务栏上的时钟 nircmd.exe win child class "Shell_TrayWnd" show class "TrayClockWClass"
Kill (terminate) all instance of Internet Explorer processes
终结全部IE进程 nircmd.exe killprocess iexplore.exe
Create a shortcut on your desktop that opens the door of K: CDROM drive when you run it.
在桌面上创建一个打开某个CD的快捷方式 nircmd.exe cmdshortcut "~$folder.desktop$" "Open CDROM" cdrom open k:
Restart your Apache server (under Windows NT/2000/XP/2003)
重起Apache服务 nircmd.exe service restart apache
Restart your IIS nircmd.exe service restart w3svc
Restart MySql nircmd.exe service restart MySql
Open the desired Registry key/value in RegEdit
打开注册表 nircmd.exe regedit "HKLM\Software\Microsoft\Windows\CurrentVersion" "CommonFilesDir"
Copy your desktop folder path to the clipboard
复制桌面上的文件夹路径到剪贴板 nircmd.exe clipboard set ~$folder.desktop$
Copy your start menu folder path to the clipboard
复制开始菜单里的文件夹路径到剪贴板 nircmd.exe clipboard set ~$folder.start_menu$
Clear the clipboard 清除剪贴板里的内容 nircmd.exe clipboard clear

附件 1: NirCmd 2.15.zip (2008-11-4 13:27, 81.12 K, 下载附件所需积分 1 点 ,下载次数: 26)


学无尽止
2008-11-4 13:27
查看资料  发送邮件  访问主页  发短消息 网志  OICQ (86682419)  编辑帖子  回复  引用回复
tireless
银牌会员





积分 2025
发帖 1122
注册 2007-9-5
状态 离线
『第 2 楼』:  

应该是这样:
nircmd mutesysvolume 1 "Rear Pink IN"


  Quote:
mutesysvolume [action] {Component} {Device Index}

Mute/unmute the system volume.
In the [action] parameter, specify 1 for mute, 0 for unmute, or 2 for switching between mute and normal state.
The second parameter is optional, and you can specify one of the following sound components: master, waveout, synth, cd, microphone, phone, aux, line, headphones, wavein. The default value is 'master' (for master volume). Under Windows Vista, the component name must be identical to the one of the device names appear in the sound window of Vista (Control Panel -> Sound). If the device name contains spaces, it must be in quotes.
{Device Index} is an optional parameter that specifies the sound device index. This parameter is useful if you have more than one sound card. If you don't specify this parameter, the default sound card in Control Panel is used.
Examples:
mutesysvolume 1
mutesysvolume 0
mutesysvolume 2 waveout
mutesysvolume 1 master 1


Vista Examples:
mutesysvolume 1
mutesysvolume 0
mutesysvolume 2 "rear mic"
mutesysvolume 1 speakers 1



2008-11-4 15:34
查看资料  发短消息 网志   编辑帖子  回复  引用回复
yishanju
银牌会员

[b]看你妹啊[/b]


积分 1488
发帖 1357
注册 2006-5-20
状态 离线
『第 3 楼』:  

哇哈哈, hircmd 官方网站有好多MS强大滴东东,兴奋啊兴奋,潮湿啊潮湿,淫荡啊淫荡

http://www.nirsoft.net/utils/index.html




有问题请发论坛或者自行搜索,再短消息问我的统统是SB
2008-11-4 16:01
查看资料  发短消息 网志   编辑帖子  回复  引用回复
chainliq
高级用户

学无尽止


积分 635
发帖 244
注册 2006-4-15
来自 广西贵港
状态 离线
『第 4 楼』:  

sysvolume  还有其它参数吗?



学无尽止
2008-11-6 13:58
查看资料  发送邮件  访问主页  发短消息 网志  OICQ (86682419)  编辑帖子  回复  引用回复
cacophony
新手上路





积分 1
发帖 1
注册 2007-3-24
状态 离线
『第 5 楼』:  

学习学习

2009-4-23 05:38
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: