在Windows CMD中调试和错误处理的技术

合集下载

cmd大全

cmd大全
CMD的打开方式 开始--运行--输入“cmd”--确定 (vista用户,请使用开始搜索框输入cmd,右键单击搜索框中的cmd.exe,以管理员身份运行) 系统进程: 是 后台程序: 否 使用网络: 在输入指定的命令下才占用网络 硬件相关: 否 常见错误: 无 内存使用: 按输入内命令为准 安全等级 (0-5): 0 间谍软件: 否 广告软件: 否 病毒: 否 木马: 否
CMD的外部命令 (调用其它程序来实现对对象的操作) 1. calc-----------启动计算器 2. certmgr.msc----证书管理实用程序 3. charmap--------启动字符映射表 4. chkdsk.exe-----Chkdsk磁盘检查 5. ciadv.msc------索引服务程序 6. cleanmgr-------垃圾整理 7. cliconfg-------SQL SERVER 客户端网络实用程序 8. Clipbrd--------剪贴板查看器 9. cmd.exe--------CMD命令提示符 10. compmgmt.msc---计算机管理 11. conf-----------启动netmeeting 12. dcomcnfg-------打开系统组件服务 13. ddeshare-------打开DDE共享设置 14. devmgmt.msc--- 设备管理器 15. dfrg.msc-------磁盘碎片整理程序 16. diskmgmt.msc---磁盘管理实用程序 17. drwtsn32------ 系统医生 18. dvdplay--------DVD播放器 19. dxdiag---------检查DirectX信息 20. eudcedit-------造字程序 21. eventvwr-------事件查看器 22. explorer-------打开资源管理器 23. fsmgmt.msc-----共享文件夹管理器 24. gpedit.msc-----组策略 25. iexpress-------木马捆绑工具,系统自带 26. logoff---------注销命令 27. lusrmgr.msc----本机用户和组 28. magnify--------放大镜实用程序 29. mem.exe--------显示内存使用情况 30. mmc------------打开控制台 31. mobsync--------同步命令 32. mplayer2-------简易widnows media player 33. Msconfig.exe---系统配置实用程序 34. mspaint--------画图板 35. mstsc----------远程桌面连接 36. narrator-------屏幕“讲述人” 37. net start messenger----开始信使服务 38. net stop messenger-----停止信使服务 39. netstat -an----(TC)命令检查接口 40. notepad--------打开记事本 41. Nslookup-------IP地址侦测器 42. ntbackup-------系统备份和还原 43. ntmsmgr.msc----移动存储管理器 44. ntmsoprq.msc---移动存储管理员操作请求 45. odbcad32-------ODBC数据源管理器 46. oobe/msoobe /a----检查XP是否激活 47. osk------------打开屏幕键盘

[专题]Windows_CMD命令大全整理

[专题]Windows_CMD命令大全整理

Windows_CMD命令大全整理accwiz.exe > Accessibility Wizard for walking you through setting up your machine for your mobility needs. 辅助工具向导acsetups.exe > ACS setup DCOM server executableactmovie.exe > Direct Show setup tool 直接显示安装工具append.exe > Allows programs to open data in specified directories as if they were in the current directory. 允许程序打开制定目录中的数据arp.exe > NETWORK Display and modify IP - Hardware addresses 显示和更改计算机的IP与硬件物理地址的对应列表at.exe > AT is a scheduling utility also included with UNIX 计划运行任务atmadm.exe > Displays statistics for ATM call manager. ATM调用管理器统计attrib.exe > Display and modify attributes for files and folders 显示和更改文件和文件夹属性autochk.exe > Used to check and repair Windows File Systems 检测修复文件系统autoconv.exe > Automates the file system conversion during reboots 在启动过程中自动转化系统autofmt.exe > Automates the file format process during reboots 在启动过程中格式化进程autolfn.exe > Used for formatting long file names 使用长文件名格式bootok.exe > Boot acceptance application for registrybootvrfy.exe > Bootvrfy.exe, a program included in Windows 2000 thatnotifies the system that startup was successful. Bootvrfy.exe can be run on a local or remote computer. 通报启动成功cacls.exe > Displays or modifies access control lists (ACLs) of files. 显示和编辑ACLcalc.exe > Windows Calculators 计算器cdplayer.exe > Windows CD Player CD播放器change.exe > Change { User | Port | Logon } 与终端服务器相关的查询charmap.exe > Character Map 字符映射表chglogon.exe > Same as using "Change Logon" 启动或停用会话记录chgport.exe > Same as using "Change Port" 改变端口(终端服务)chgusr.exe > Same as using "Change User" 改变用户(终端服务)chkdsk.exe > Check the hard disk for errors similar to Scandisk 3 Stagesmust specify a Drive Letter 磁盘检测程序chkntfs.exe > Same as using chkdsk but for NTFS NTFS磁盘检测程序cidaemon.exe > Component of Ci Filer Service 组成Ci文档服务cipher.exe > Displays or alters the encryption of directories [files] on NTFS partitions. 在NTFS上显示或改变加密的文件或目录cisvc.exe > Content Index -- It's the content indexing service for I 索引内容ckcnv.exe > Cookie Convertor 变换Cookiecleanmgr.exe > Disk Cleanup, popular with Windows 98 磁盘清理cliconfg.exe > SQL Server Client Network Utility SQL客户网络工具clipbrd.exe > Clipboard viewer for Local will allow you to connect to other clipboards 剪贴簿查看器clipsrv.exe > Start the clipboard Server 运行Clipboard 服务clspack.exe > CLSPACK used to create a file listing of system packages 建立系统文件列表清单cluster.exe > Display a cluster in a domain 显示域的集群_cmd_.exe > Famous command prompt 没什么好说的!cmdl32.exe > Connection Manager Auto-Download 自动下载连接管理cmmgr32.exe > Connection Manager 连接管理器cmmon32.exe > Connection Manager Monitor 连接管理器监视cmstp.exe > Connection Manager Profile Manager 连接管理器配置文件安装程序comclust.exe > about cluster server 集群comp.exe > ComClust Add, Remove, or Join a cluster. 比较两个文件和文件集的内容*compact.exe > Displays or alters the compression of files on NTFS partitions. 显示或改变NTFS分区上文件的压缩状态conime.exe > Console IME IME控制台control.exe > Starts the control panel 控制面板convert.exe > Convert File System to NTFS 转换文件系统到NTFSconvlog.exe > Converts MS IIS log files 转换IIS日志文件格式到NCSA格式cprofile.exe > Copy profiles 转换显示模式cscript.exe > MS Windows Scripts Host Version 5.1 较本宿主版本csrss.exe > Client Server Runtime Process 客户服务器Runtime进程csvde.exe > Comma Separated Variable Import/Export Utility 日至格式转换程序dbgtrace.exe > 和Terminal Server相关dcomcnfg.exe > Display the current DCOM configuration. DCOM配置属性dcphelp.exe > ?dcpromo.exe > Promote a domain controller to ADSI AD安装向导ddeshare.exe > Display DDE shares on local or remote computer DDE共享ddmprxy.exe >debug.exe > Runs Debug, a program testing and editing tool. 就是DEBUG啦!dfrgfat.exe > Defrag FAT file system FAT分区磁盘碎片整理程序dfrgntfs.exe > Defrag NTFS file system NTFS分区磁盘碎片整理程序dfs_cmd_.exe > configures a Dfs tree 配置一个DFS树dfsinit.exe > Distributed File System Initialization 分布式文件系统初始化dfssvc.exe > Distributed File System Server 分布式文件系统服务器diantz.exe > MS Cabinet Maker 制作CAB文件diskperf.exe > Starts physical Disk Performance counters 磁盘性能计数器dllhost.exe > dllhost is used on all versions of Windows 2000. dllhost is the hedost process for all COM+ applications. 所有COM+应用软件的主进程dllhst3g.exe >dmadmin.exe > Disk Manager Service 磁盘管理服务dmremote.exe > Part of disk management 磁盘管理服务的一部分dns.exe > DNS Applications DNSdoskey.exe > recalls Windows command lines and creates macros 命令行创建宏dosx.exe > DOS Extender DOS扩展dplaysvr.exe > Direct Play Helper 直接运行帮助drwatson.exe > Dr Watson for 2000 Fault Detector 华生医生错误检测drwtsn32.exe > Dr Watson for 2000 viewer and configuration manager 华生医生显示和配置管理dtcsetup.exe > Installs MDTCdvdplay.exe > Windows 2000 DVD player DVD播放dxdiag.exe > Direct-X Diagnostics Direct-X诊断工具edlin.exe > line-oriented text editor. 命令行的文本编辑器(历史悠久啊!)esentutl.exe > MS Database Utility MS数据库工具eudcedit.exe > Private character editor Ture Type造字程序eventvwr.exe > Windows 2000 Event Viewer 事件查看器evnt_cmd_.exe > Event to trap translator; Configuration toolevntwin.exe > Event to trap translator setupexe2bin.exe > Converts EXE to binary format 转换EXE文件到二进制expand.exe > Expand Files that have been compressed 解压缩extrac32.exe > CAB File extraction utility 解CAB工具fastopen.exe > Fastopen tracks the location of files on a hard disk and stores the information in memory for fast access. 快速访问在内存中的硬盘文件faxcover.exe > Fax Cover page editor 传真封面编辑faxqueue.exe > Display Fax Queue 显示传真队列faxsend.exe > Fax Wizard for sending faxes 发送传真向导 faxsvc.exe > Starts fax server 启动传真服务fc.exe > Compares two files or sets of files and their differences 比较两个文件的不同find.exe > Searches for a text string in file or files 查找文件中的文本行findstr.exe > Searches for strings in files 查找文件中的行finger.exe > Fingers a user and displays statistics on that user Finger一个用户并显示出统计结果fixmapi.exe > Fix mapi files 修复MAPI文件flattemp.exe > Enable or disable temporally directories 允许或者禁用临时文件目录fontview.exe > Display fonts in a font file 显示字体文件中的字体forcedos.exe > Forces a file to start in dos mode. 强制文件在DOS模式下运行freecell.exe > Popular Windows Game 空当接龙ftp.exe > File Transfer Protocol used to transfer files over a network connection 就是FTP了gdi.exe > Graphic Device Interface 图形界面驱动grovel.exe >grpconv.exe > Program Manager Group Convertor 转换程序管理员组help.exe > displays help for Windows 2000 commands 显示帮助hostname.exe > Display hostname for machine. 显示机器的Hostnameie4uinit.exe > IE5 User Install tool IE5用户安装工具 ieshwiz.exe > Customize folder wizard 自定义文件夹向导iexpress.exe > Create and setup packages for install 穿件安装包iisreset.exe > Restart IIS Admin Service 重启IIS服务internat.exe > Keyboard Language Indicator Applet 键盘语言指示器ipconfig.exe > Windows 2000 IP configuration. 察看IP配置ipsecmon.exe > IP Security Monitor IP安全监视器ipxroute.exe > IPX Routing and Source Routing Control Program IPX路由和源路由控制程序irftp.exe > Setup FTP for wireless communication 无线连接ismserv.exe > Intersite messaging Service 安装或者删除Service Control Manager中的服务jdbgmgr.exe > Microsoft debugger for java 4 Java4的调试器jetconv.exe > Convert a Jet Engine Database 转换Jet Engine数据库jetpack.exe > Compact Jet Database. 压缩Jet数据库jview.exe > Command-line loader for Java Java的命令行装载者krnl386.exe > Core Component for Windows 2000 2000的核心组件label.exe > Change label for drives 改变驱动器的卷标lcwiz.exe > License Compliance Wizard for local or remote systems. 许可证符合向导ldifde.exe > LDIF cmd line manager LDIF目录交换命令行管理licmgr.exe > Terminal Server License Manager 终端服务许可协议管理lights.exe > display connection status lights 显示连接状况llsmgr.exe > Windows 2000 License Manager 2000许可协议管理llssrv.exe > Start the license Server 启动许可协议服务器lnkstub.exe >locator.exe > RPC Locator 远程定位lodctr.exe > Load perfmon counters 调用性能计数logoff.exe > Log current user off. 注销用户lpq.exe > Displays status of a remote LPD queue 显示远端的LPD打印队列的状态,显示被送到基于Unix的服务器的打印任务lpr.exe > Send a print job to a network printer. 重定向打印任务到网络中的打印机。

常见的Windows CMD命令错误和解决方案

常见的Windows CMD命令错误和解决方案

常见的Windows CMD命令错误和解决方案在Windows系统中,CMD命令是一种非常常见且实用的工具,它可以帮助我们完成各种任务,如文件管理、网络配置、系统设置等。

然而,在使用CMD命令的过程中,我们常常会遇到一些错误,这可能会导致我们无法顺利完成任务。

本文将介绍一些常见的CMD命令错误,并提供相应的解决方案,希望能帮助读者更好地使用CMD命令。

1. "命令不被识别"错误当我们在CMD中输入一个命令时,有时会遇到"命令不被识别"的错误提示。

这通常是因为我们输入的命令拼写错误或者该命令不在系统的环境变量中。

解决这个问题的方法有两种:一是检查命令的拼写是否正确,二是添加命令到系统的环境变量中。

添加命令到环境变量中可以通过以下步骤完成:首先,找到系统的环境变量设置界面,然后在"Path"变量中添加命令所在的路径。

2. "文件路径无效"错误有时候,在使用CMD命令时,我们会遇到"文件路径无效"的错误提示。

这通常是因为我们输入的文件路径不存在或者路径中包含了非法字符。

要解决这个问题,我们需要仔细检查文件路径是否正确,并确保路径中不包含非法字符,如空格或特殊字符。

另外,如果文件路径中包含空格,我们可以将路径用引号括起来,以避免出现错误。

3. "权限不足"错误在使用CMD命令时,有时会遇到"权限不足"的错误提示。

这通常是因为我们没有足够的权限执行该命令。

要解决这个问题,我们可以尝试以管理员身份运行CMD命令。

具体操作是,右键点击CMD快捷方式,选择"以管理员身份运行"。

如果我们没有管理员权限,可以联系系统管理员来获取相应权限。

4. "命令参数无效"错误有时候,在使用CMD命令时,我们会遇到"命令参数无效"的错误提示。

CMD命令大全,史上最全最详细

CMD命令大全,史上最全最详细

CMD命令大全,史上最全最详细CMD命令:开始->运行->键入cmd或command(在命令行里可以看到系统版本、文件系统版本)1. appwiz.cpl:程序和功能2. calc:启动计算器3. certmgr.msc:证书管理实用程序4. charmap:启动字符映射表5. chkdsk.exe:Chkdsk磁盘检查(管理员身份运行命令提示符)6. cleanmgr: 打开磁盘清理工具7. cliconfg:SQL SERVER 客户端网络实用工具8. cmstp:连接管理器配置文件安装程序9. cmd.exe:CMD命令提示符10. 自动关机命令Shutdown -s -t 600:表示600秒后自动关机shutdown -a :可取消定时关机Shutdown -r -t 600:表示600秒后自动重启rundll32 user32.dll,LockWorkStation:表示锁定计算机11. colorcpl:颜色管理,配置显示器和打印机等中的色彩12. CompMgmtLauncher:计算机管理13. compmgmt.msc:计算机管理14. credwiz:备份或还原储存的用户名和密码15. comexp.msc:打开系统组件服务16. control:控制面版17. dcomcnfg:打开系统组件服务18. Dccw:显示颜色校准19. devmgmt.msc:设备管理器20. desk.cpl:屏幕分辨率21. dfrgui:优化驱动器Windows 7→dfrg.msc:磁盘碎片整理程序22. dialer:电话拨号程序23. diskmgmt.msc:磁盘管理24. dvdplay:DVD播放器25. dxdiag:检查DirectX信息26. eudcedit:造字程序27. eventvwr:事件查看器28. explorer:打开资源管理器29. Firewall.cpl:Windows防火墙30. FXSCOVER:传真封面编辑器31. fsmgmt.msc:共享文件夹管理器32. gpedit.msc:组策略33. hdwwiz.cpl:设备管理器34. inetcpl.cpl:Internet属性35. intl.cpl:区域36. iexpress:木马捆绑工具,系统自带37. joy.cpl:游戏控制器38. logoff:注销命令39. lusrmgr.msc:本地用户和组40. lpksetup:语言包安装/删除向导,安装向导会提示下载语言包41. lusrmgr.msc:本机用户和组42. main.cpl:鼠标属性43. mmsys.cpl:声音44. magnify:放大镜实用程序45. mem.exe:显示内存使用情况(如果直接运行无效,可以先管理员身份运行命令提示符,在命令提示符里输入mem.exe>d:a.txt 即可打开d盘查看a.txt,里面的就是内存使用情况了。

高级Windows CMD命令脚本编写技巧和建议

高级Windows CMD命令脚本编写技巧和建议

高级Windows CMD命令脚本编写技巧和建议在日常工作和学习中,我们经常需要使用命令行来完成一些任务,而Windows CMD命令脚本编写技巧的掌握对于提高工作效率和简化操作流程至关重要。

本文将介绍一些高级的Windows CMD命令脚本编写技巧和建议,帮助读者更好地利用命令行工具。

一、变量的使用在编写CMD脚本时,变量的使用是非常重要的。

通过定义和使用变量,我们可以在脚本中存储和操作数据,实现更加灵活和可扩展的功能。

1. 定义变量:使用set命令可以定义和赋值变量。

例如,set name=John可以定义一个名为name的变量,并将其赋值为John。

2. 使用变量:在脚本中使用变量时,需要使用%变量名%的形式。

例如,echo %name%可以输出变量name的值。

3. 系统变量:除了自定义变量,CMD还提供了一些系统变量,如%USERNAME%表示当前登录用户的用户名,%DATE%表示当前日期,%TIME%表示当前时间等。

这些系统变量可以方便地在脚本中使用。

二、条件判断和循环条件判断和循环是CMD脚本中常用的控制结构,可以根据不同的条件执行不同的命令或重复执行某个命令。

1. 条件判断:使用if命令可以进行条件判断。

例如,if exist file.txt echo 文件存在可以判断当前目录下是否存在名为file.txt的文件,如果存在则输出“文件存在”。

2. 循环:使用for命令可以进行循环操作。

例如,for /l %%i in (1,1,10) doecho %%i可以输出从1到10的数字。

三、命令的重定向和管道命令的重定向和管道是CMD脚本中非常有用的功能,可以将命令的输出结果保存到文件中或将多个命令连接起来实现更复杂的操作。

1. 重定向:使用>符号可以将命令的输出结果重定向到文件中。

例如,dir > file.txt可以将当前目录的文件列表保存到名为file.txt的文件中。

Windows CMD命令

Windows CMD命令

Windows 2000 CMD命令大全accwiz.exe > Accessibility Wizard for walking you through setting up your<SCRIPT id=ad_text_pcjob src="/script/ad_text_pcjob.js" defer></SCRIPT> machine for your mobility needs. 辅助工具向导acsetups.exe > ACS setup DCOM server executableactmovie.exe > Direct Show setup tool 直接显示安装工具append.exe > Allows programs to open data in specified directories as if they were in the current directory. 允许程序打开制定目录中的数据arp.exe > NETWORK Display and modify IP - Hardware addresses 显示和更改计算机的IP 与硬件物理地址的对应列表at.exe > AT is a scheduling utility also included with UNIX 计划运行任务atmadm.exe > Displays statistics for ATM call manager. ATM调用管理器统计attrib.exe > Display and modify attributes for files and folders 显示和更改文件和文件夹属性autochk.exe > Used to check and repair Windows File Systems 检测修复文件系统autoconv.exe > Automates the file system conversion during reboots 在启动过程中自动转化系统autofmt.exe > Automates the file format process during reboots 在启动过程中格式化进程autolfn.exe > Used for formatting long file names 使用长文件名格式bootok.exe > Boot acceptance application for registrybootvrfy.exe > Bootvrfy.exe, a program included in Windows 2000 thatnotifies the system that startup was successful. Bootvrfy.exe can be run on a local or remote computer. 通报启动成功cacls.exe > Displays or modifies access control lists (ACLs) of files. 显示和编辑ACLcalc.exe > Windows Calculators 计算器cdplayer.exe > Windows CD Player CD播放器change.exe > Change { User | Port | Logon } 与终端服务器相关的查询charmap.exe > Character Map 字符映射表chglogon.exe > Same as using "Change Logon" 启动或停用会话记录chgport.exe > Same as using "Change Port" 改变端口(终端服务)chgusr.exe > Same as using "Change User" 改变用户(终端服务)chkdsk.exe > Check the hard disk for errors similar to Scandisk 3 Stagesmust specify a Drive Letter 磁盘检测程序chkntfs.exe > Same as using chkdsk but for NTFS NTFS磁盘检测程序cidaemon.exe > Component of Ci Filer Service 组成Ci文档服务cipher.exe > Displays or alters the encryption of directories [files] on NTFS partitions. 在NTFS上显示或改变加密的文件或目录cisvc.exe > Content Index -- It's the content indexing service for I 索引内容ckcnv.exe > Cookie Convertor 变换Cookiecleanmgr.exe > Disk Cleanup, popular with Windows 98 磁盘清理cliconfg.exe > SQL Server Client Network Utility SQL客户网络工具clipbrd.exe > Clipboard viewer for Local will allow you to connect to other clipboards 剪贴簿查看器clipsrv.exe > Start the clipboard Server 运行Clipboard服务clspack.exe > CLSPACK used to create a file listing of system packages 建立系统文件列表清单cluster.exe > Display a cluster in a domain 显示域的集群_cmd_.exe > Famous command prompt 没什么好说的!cmdl32.exe > Connection Manager Auto-Download 自动下载连接管理cmmgr32.exe > Connection Manager 连接管理器cmmon32.exe > Connection Manager Monitor 连接管理器监视cmstp.exe > Connection Manager Profile Manager 连接管理器配置文件安装程序comclust.exe > about cluster server 集群comp.exe > ComClust Add, Remove, or Join a cluster. 比较两个文件和文件集的内容*compact.exe > Displays or alters the compression of files on NTFSpartitions. 显示或改变NTFS分区上文件的压缩状态conime.exe > Console IME IME控制台control.exe > Starts the control panel 控制面板convert.exe > Convert File System to NTFS 转换文件系统到NTFSconvlog.exe > Converts MS IIS log files 转换IIS日志文件格式到NCSA格式cprofile.exe > Copy profiles 转换显示模式cscript.exe > MS Windows Scripts Host Version 5.1 较本宿主版本csrss.exe > Client Server Runtime Process 客户服务器Runtime进程csvde.exe > Comma Separated Variable Import/Export Utility 日至格式转换程序dbgtrace.exe > 和Terminal Server相关dcomcnfg.exe > Display the current DCOM configuration. DCOM配置属性dcphelp.exe > ?dcpromo.exe > Promote a domain controller to ADSI AD安装向导ddeshare.exe > Display DDE shares on local or remote computer DDE共享ddmprxy.exe >debug.exe > Runs Debug, a program testing and editing tool. 就是DEBUG啦!dfrgfat.exe > Defrag FAT file system FAT分区磁盘碎片整理程序dfrgntfs.exe > Defrag NTFS file system NTFS分区磁盘碎片整理程序dfs_cmd_.exe > configures a Dfs tree 配置一个DFS树dfsinit.exe > Distributed File System Initialization 分布式文件系统初始化dfssvc.exe > Distributed File System Server 分布式文件系统服务器diantz.exe > MS Cabinet Maker 制作CAB文件diskperf.exe > Starts physical Disk Performance counters 磁盘性能计数器dllhost.exe > dllhost is used on all versions of Windows 2000. dllhost is the hedost process for all COM+ applications. 所有COM+应用软件的主进程dllhst3g.exe >dmadmin.exe > Disk Manager Service 磁盘管理服务dmremote.exe > Part of disk management 磁盘管理服务的一部分dns.exe > DNS Applications DNSdoskey.exe > recalls Windows command lines and creates macros 命令行创建宏dosx.exe > DOS Extender DOS扩展dplaysvr.exe > Direct Play Helper 直接运行帮助drwatson.exe > Dr Watson for 2000 Fault Detector 华生医生错误检测drwtsn32.exe > Dr Watson for 2000 viewer and configuration manager 华生医生显示和配置管理dtcsetup.exe > Installs MDTCdvdplay.exe > Windows 2000 DVD player DVD播放dxdiag.exe > Direct-X Diagnostics Direct-X诊断工具edlin.exe > line-oriented text editor. 命令行的文本编辑器(历史悠久啊!)edlin.exe > line-oriented text editor. 命令行的文本编辑器(历史悠久啊!)esentutl.exe > MS Database Utility MS数据库工具eudcedit.exe > Private character editor Ture Type造字程序eventvwr.exe > Windows 2000 Event Viewer 事件查看器evnt_cmd_.exe > Event to trap translator; Configuration toolevntwin.exe > Event to trap translator setupexe2bin.exe > Converts EXE to binary format 转换EXE文件到二进制expand.exe > Expand Files that have been compressed 解压缩extrac32.exe > CAB File extraction utility 解CAB工具fastopen.exe > Fastopen tracks the location of files on a hard disk and stores the information in memory for fast access. 快速访问在内存中的硬盘文件faxcover.exe > Fax Cover page editor 传真封面编辑faxqueue.exe > Display Fax Queue 显示传真队列faxsend.exe > Fax Wizard for sending faxes 发送传真向导faxsvc.exe > Starts fax server 启动传真服务fc.exe > Compares two files or sets of files and their differences 比较两个文件的不同find.exe > Searches for a text string in file or files 查找文件中的文本行findstr.exe > Searches for strings in files 查找文件中的行finger.exe > Fingers a user and displays statistics on that user Finger一个用户并显示出统计结果fixmapi.exe > Fix mapi files 修复MAPI文件flattemp.exe > Enable or disable temporally directories 允许或者禁用临时文件目录fontview.exe > Display fonts in a font file 显示字体文件中的字体forcedos.exe > Forces a file to start in dos mode. 强制文件在DOS模式下运行freecell.exe > Popular Windows Game 空当接龙ftp.exe > File Transfer Protocol used to transfer files over a network connection 就是FTP了gdi.exe > Graphic Device Interface 图形界面驱动grovel.exe >grpconv.exe > Program Manager Group Convertor 转换程序管理员组help.exe > displays help for Windows 2000 commands 显示帮助hostname.exe > Display hostname for machine. 显示机器的Hostnameie4uinit.exe > IE5 User Install tool IE5用户安装工具ieshwiz.exe > Customize folder wizard 自定义文件夹向导iexpress.exe > Create and setup packages for install 穿件安装包iisreset.exe > Restart IIS Admin Service 重启IIS服务internat.exe > Keyboard Language Indicator Applet 键盘语言指示器ipconfig.exe > Windows 2000 IP configuration. 察看IP配置ipsecmon.exe > IP Security Monitor IP安全监视器ipxroute.exe > IPX Routing and Source Routing Control Program IPX路由和源路由控制程序irftp.exe > Setup FTP for wireless communication 无线连接ismserv.exe > Intersite messaging Service 安装或者删除Service Control Manager中的服务jdbgmgr.exe > Microsoft debugger for java 4 Java4的调试器jetconv.exe > Convert a Jet Engine Database 转换Jet Engine数据库jetpack.exe > Compact Jet Database. 压缩Jet数据库jview.exe > Command-line loader for Java Java的命令行装载者krnl386.exe > Core Component for Windows 2000 2000的核心组件label.exe > Change label for drives 改变驱动器的卷标lcwiz.exe > License Compliance Wizard for local or remote systems. 许可证符合向导ldifde.exe > LDIF cmd line manager LDIF目录交换命令行管理licmgr.exe > Terminal Server License Manager 终端服务许可协议管理lights.exe > display connection status lights 显示连接状况llsmgr.exe > Windows 2000 License Manager 2000许可协议管理llssrv.exe > Start the license Server 启动许可协议服务器lnkstub.exe >locator.exe > RPC Locator 远程定位lodctr.exe > Load perfmon counters 调用性能计数logoff.exe > Log current user off. 注销用户lpq.exe > Displays status of a remote LPD queue 显示远端的LPD打印队列的状态,显示被送到基于Unix的服务器的打印任务lpr.exe > Send a print job to a network printer. 重定向打印任务到网络中的打印机。

Windows调试工具入门7(WinDbg驱动程序源码调试)

Windows调试工具入门7(WinDbg驱动程序源码调试)
1. 开始源码调试 1. 设置
系列前面的几篇文章已经介绍过对符号路径和源码路径的设置。调试自己编写的驱动时,如 果是主控机上编译,在目标机上运行,那么一般都不需要专门设置 路径 WinDbg 就能找到正 确的符号和源文件。如果驱动不是在主控机上编译的,或者编译之后移动了源码或符号文件 就必须要进行设置。在这里我是这样设置 的:
1.准备
Windows 调试工具优于目前的其他内核调试器很重要的一点,就是能够非常方便的对自己编 写的驱动程序进行源码调试。为了能够更好的说明,我们首先需要做一些准备工作,分别编 写一个测试驱动程序和一个应用程序来使用驱动的功能。 驱动程序 首先实现一个最简单的驱动程序,除了 DriverEntry 等框架代码之外,我们添加一个 IRP_MJ_READ 的 Dispatch 例程,当应用程 序调用 ReadFile 时返回一个值递增的字节。另 外,实现两个 DeviceIoControl Code,一个调用 DbgPrint 向调试器显示信息并返回,另一 个访问非法指针造成崩溃。代码片断如下,完整的代码和编译出来的文件可以在附件中获取:
pstIrpStack = IoGetCurrentIrpStackLocation( Irp); pbyUserBuffer = (PUCHAR)Irp->UserBuffer; ulSize = pstIrpStack->Parameters.Read.Length;
if ( ulSize == 1) {
Device Object list: 82138030 kd> !devobj SrcDbgKnlDrv Device object (82138030) is for: SrcDbgKnlDrv \Driver\SrcDbgKnlDrv DriverObject 8219f5f0 Current Irp 00000000 RefCount 0 Type 00000022 Flags 000000c0 Dacl e10361f4 DevExt 00000000 DevObjExt 821380e8 ExtensionFlags (0000000000) Device queue is not busy. 如果我们的设备有附加到某个设备栈上的话,可以用!devstack 扩展命令显示设备栈的信 息。 kd> !devstack 82138030 !DevObj !DrvObj !DevExt ObjectName > 82138030 \Driver\SrcDbgKnlDrv00000000 SrcDbgKnlDrv 这里看到的输出说明 SrcDbgKnlDrv 没有附加到任何设备栈。 通过!devhandles 命令可以查看设备被打开的句柄。目前在这个地方使用的话,由于没有句 柄被打开,还看不到什么有用的信息,在后面进行演示。

最全CMD指令大全

最全CMD指令大全

最全CMD指令大全最全CMD指令大全CMD运行指令开始→运行→CMD→键入以下命令即可: ASSOC显示或修改文件扩展名关联。

AT计划在计算机上运行的命令和程序。

ATTRIB显示或更改文件属性。

BREAK设置或清除扩展式CTRL+C检查。

CACLS显示或修改文件的访问控制列表(ACLs)。

CALL从另一个批处理程序调用这一个。

CD显示当前目录的名称或将其更改。

CHCP显示或设置活动代码页数。

CHDIR显示当前目录的名称或将其更改。

cleanmgr–打开磁盘清理工具compmgmt.msc---计算机管理conf—-启动netmeetingcharmap–-启动字符映射表calc—-启动计算器chkdsk.exe–-Chkdsk磁盘检查cmd.exe–-CMD命令提示符certmgr.msc–证书管理实用程序cliconfg–SQLSERVER客户端网络实用程序Clipbrd–-剪贴板查看器ciadv.msc–--索引服务程序dvdplay–-DVD播放器diskmgmt.msc---磁盘管理实用程序dfrg.msc–磁盘碎片整理程序devmgmt.msc---设备管理器drwtsn32–--系统医生dxdiag–--检查DirectX信息dcomcnfg–打开系统组件服务ddeshare–打开DDE共享设置explorer–打开资源管理器eventvwr–事件查看器eudcedit–造字程序fsmgmt.msc–-共享文件夹管理器gpedit.msc–-组策略iexpress–***工具,系统自带logoff–注销命令lusrmgr.msc–本机用户和组mstsc–远程桌面连接Msconfig.exe---系统配置实用程序mem.exe–-显示内存使用情况(如果直接运行无效,可以先运行cmd,在命令提示符里输入mem.exe>d:a.txt即可打开d盘查看a.txt,里面的就是内存使用情况了。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

在Windows CMD中调试和错误处理的技术
Windows CMD(命令提示符)是Windows操作系统中的一个强大工具,可以
用于执行各种命令和脚本。

在开发和调试过程中,CMD可以帮助我们快速定位和
解决问题。

本文将探讨在Windows CMD中调试和错误处理的一些技术。

一、调试技术
1. 输出调试信息
在CMD中,我们可以使用echo命令输出调试信息。

通过在代码中插入echo
语句,我们可以在程序执行过程中打印出变量的值、执行的步骤等信息,帮助我们定位问题所在。

2. 使用set命令进行变量调试
set命令可以用于设置和显示环境变量。

在调试过程中,我们可以使用set命令
查看变量的值,以确定是否正确赋值。

例如,我们可以使用set命令查看一个变量
是否为空,或者查看一个变量的值是否符合预期。

3. 使用pause命令暂停程序执行
在CMD中,我们可以使用pause命令暂停程序的执行,以便我们能够观察程
序的执行情况。

在调试过程中,我们可以在关键位置插入pause命令,以便我们能
够逐步观察程序的执行过程,从而更容易发现问题。

二、错误处理技术
1. 使用if语句进行错误处理
在CMD中,我们可以使用if语句进行错误处理。

通过判断某个条件是否成立,我们可以根据不同的情况执行不同的操作。

例如,我们可以使用if语句判断某个
命令是否执行成功,如果执行成功,则继续执行下一步操作;如果执行失败,则输出错误信息并终止程序的执行。

2. 使用errorlevel进行错误处理
在CMD中,每个命令执行后都会返回一个错误级别(errorlevel)。

我们可以使用errorlevel来判断某个命令是否执行成功。

如果errorlevel为0,则表示命令执行成功;如果errorlevel不为0,则表示命令执行失败。

通过判断errorlevel的值,我们可以进行相应的错误处理。

3. 使用goto命令进行错误处理
在CMD中,我们可以使用goto命令进行错误处理。

通过在代码中插入goto语句,我们可以根据不同的条件跳转到不同的代码块。

例如,我们可以使用goto命令在发生错误时跳转到错误处理的代码块,以便我们能够及时处理错误并终止程序的执行。

三、总结
在Windows CMD中调试和错误处理是开发过程中必不可少的技术。

通过输出调试信息、使用set命令进行变量调试、使用pause命令暂停程序执行等技术,我们可以更快速地定位和解决问题。

而通过使用if语句、errorlevel和goto命令进行错误处理,我们可以及时处理错误并终止程序的执行。

在实际开发过程中,我们应灵活运用这些技术,提高开发效率和代码质量。

总之,掌握在Windows CMD中调试和错误处理的技术对于开发人员来说是非常重要的。

通过合理运用这些技术,我们可以更好地定位和解决问题,提高程序的稳定性和可靠性。

希望本文对读者有所帮助,能够在实际开发中发挥作用。

相关文档
最新文档