
Windows脚本命令
huoyin
这个作者很懒,什么都没留下…
展开
-
在windows命令行(cmd)下,如何合并两个文本文件
#在windows命令行(cmd)下,如何合并两个文本文件copy 1.txt + 2.txt 3.txt /Y原创 2007-11-04 16:35:00 · 10796 阅读 · 1 评论 -
Windows如何用命令修改IP地址,动态和静态切换
You can use the netsh command in Windows 2000 to script the process of changing a computer from a static Internet Protocol (IP) address to Dynamic Host Configuration Protocol (DHCP) or vice versa. The netsh command accomplishes this task without the need t原创 2011-04-02 21:52:00 · 2512 阅读 · 0 评论 -
File System Redirector and Sysnative - how to call 64 bit program from 32 bit application
<br />The %windir%/System32 directory is reserved for 64-bit applications. Most DLL file names were not changed when 64-bit versions of the DLLs were created, so 32-bit versions of the DLLs are stored in a different directory. WOW64 hides this difference u原创 2011-04-11 23:22:00 · 1363 阅读 · 0 评论 -
如何设置使windows(dos)命令中目录和文件可以自动完成和补齐
1、 如果只是临时使用,可以用cmd /f打开命令窗口2、如果想永久使用1)在运行窗口输入regedit2)找到键值HKEY_LOCAL_MACHINE/Software/Microsoft/Command Processor将CompletionChar改为0x9,PathCompletionChar 改为0x9,十六进制,这样就可以使用tab键完成自动补齐3)推出注册表,完:-)原创 2011-04-23 18:05:00 · 2818 阅读 · 0 评论 -
WMI脚本编程技巧
WMI脚本使用的是VBScript,其语法与vb大部分相似,其命令是 wmic ...以下是常用的技巧:1)如何获取脚本命令传递参数信息WScript.Echo WScript.Arguments.CountWScript.Echo WScript.Arguments.Item(原创 2011-03-23 17:48:00 · 871 阅读 · 0 评论 -
DOS Sleep 命令
Most operating systems provide a command in batch files to sleep, or wait, a certain number of seconds. This is great in that batch files ca转载 2011-07-22 10:53:33 · 7084 阅读 · 0 评论 -
在Windows命令行(cmd)下,如何使用命令搜索(find)一个文件
#这个命令可能不是最优的,有空自己再研究一下dir /s %directory% | findstr "%patern_text%" #或者自己安装一个Unix Utils的工具包,然后可以使用unix命令find . -name *.java | xargs grep xxx原创 2008-04-09 00:10:00 · 24750 阅读 · 2 评论 -
使用DOS中的DEL命令不能删除文件怎么办,错误提示Acess is Denied
1)检查文件属性命令:attrib (filename)如果文件有-h -r -s属性,那么你就不能删除这些保护的文件,这些文件是因为某种原因被保护起来的,如果被删除掉会引起一些操作系统的问题,删除前最好确认一下2)撤销这些属性(隐藏,只读和系统)命令:attrib -h原创 2011-08-06 22:37:44 · 4028 阅读 · 0 评论 -
如何将XML转换成XSD(XML Schema)文件
本文假设你已经安装了Visual Stutio1) 输入cmd在运行窗口2) 将xsd的路径加入到path变量set path=%path%;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin3)运行下列命令xsd [xml_file]原创 2012-03-13 13:17:39 · 7971 阅读 · 0 评论 -
DOS Script字符串替换
set str=teh cat in teh hatecho.%str%set str=%str:teh=the%echo.%str%原创 2014-09-24 10:05:59 · 1423 阅读 · 0 评论 -
在Windows系统中,如何python脚本实现分割合并大二进制文件,方便上传
"""To split a file, type the following commandsplit.py [filename] [chunksize in mb]To recover it back, type the following commandcopy /b [filename].part.0+[filename].part.1+[filename].part.2 [filename]"""from sys import argvimport osd原创 2011-04-01 17:23:00 · 3279 阅读 · 0 评论 -
DOS脚本中的ERRORLEVEL用法
<br /> <br />if errorlevel 0 <br /> ===> 表示errorlevel 等于或大于0<br /> <br />if not errorlevel 0 <br /> ===> 表示errorlevel 小于0<br /> <br />if %errorlevel% == 0 或者 if "%errorlevel%" == "0 " 或 if "%errorlevel%" equ "0 "<br /> ===> 表示erro原创 2011-05-18 13:54:00 · 8993 阅读 · 0 评论 -
如何使用windows命令行(cmd)脚本远程下载文件
net use u: //${remote.host.name}/${directory} /user:${Administrator} ${password}copy u:/${filename} ${dest.dir}net use u: /null原创 2007-11-04 16:40:00 · 16628 阅读 · 2 评论 -
在命令行下,如何查看Windows操作系统的版本详细信息
在命令行下,输入systeminfo可以查看Windows操作系统的版本详细信息原创 2007-12-21 17:14:00 · 46227 阅读 · 2 评论 -
如何在命令行(cmd)通过TCP/IP端口(port)查询所在的进程号(pid)或进程名称,并终止该进程
1)首先查找占用某个端口的进程PIDnetstat -ano | findstr [port] 2)根据该进程pid查询进程名称或标题,确认那个程序在占用该端口tasklist /v | findstr [pid] 3)确认无误后,根据pid终止该进程taskkill -pid [pid]原创 2009-07-26 11:56:00 · 8350 阅读 · 0 评论 -
如何通过命令行远程重启或远程关闭Windows系统
首先打开运行窗口,出现DOS界面,然后敲入如下命令:shutdown /r /m //hostname -t 0 其中,/r 表示重新启动,/m表示机器主机名,-t表示延后时间(0表示立即重启) 如果需要关机,则敲入如下命令:shutdown /s /m //hostname -t 0 其中,/s 表示关闭计算机 如果你对命令行不太熟悉,可以直接敲入如下命令原创 2009-12-07 11:13:00 · 18185 阅读 · 1 评论 -
如何使用Shell脚本读取和修改Windows注册表
将以下文本保存到一个test.vbs文本文件中,然后执行cscript test.vbs 如果想知道更多的关于如何修改注册表,可以到微软网站的脚本中心去找参考,地址:http://www.microsoft.com/china/technet/community/scriptcenter/registry/default.mspx const HKEY_CURRENT_USER =原创 2009-12-23 21:33:00 · 2553 阅读 · 0 评论 -
如何获取Windows命令行参数信息(和Linux中的ps -ef的输出相似)
<br />#列出所有进程信息<br />CMD>wmic process<br /> <br />#列出所有java进程<br />CMD>wmic process where caption="java.exe"<br /> <br />注:Windows最令网管诟病的地方就是命令行没有Unix和Linux强大。但这种情况正在不断改观,Windows命令行也越来越强大了。其中,微软耗费大量精力打造的wmi就是一例。而wmic就是几句wmi的命令行工具。原创 2010-07-12 16:45:00 · 7733 阅读 · 0 评论 -
小技巧 - 如何在资源管理器中右键单击某个目录后有一个菜单可以打开命令提示符并直接cd到该目录
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT/Directory/shell/Command]@="Run and CD Here..."[HKEY_CLASSES_ROOT/Directory/shell/Command/command]@="cmd.exe /k cd %1"将以上内容保存为register_menu.reg,然后执行该文件就可以把这个配置导入到操作系统的注册表中。其结果就是当你在某个目录上键右键点击文件夹加可以出现 Run原创 2010-10-04 21:27:00 · 1793 阅读 · 0 评论 -
windows脚本
<br />当前目录:%cd%<br /> <br />This topic contains a table showing some common MS-DOS commands and their UnixWare system equivalents. <br />For more information about any of the UnixWare system commands, consult the manual reference pages. <br />The commands原创 2011-01-12 13:47:00 · 716 阅读 · 0 评论 -
Windows控制面板中增加删除程序的快捷键是什么
<br />appwiz.cpl原创 2011-02-23 17:07:00 · 3238 阅读 · 0 评论 -
Windows中如何删除一个目录下所有的.svn目录
#将下列命令写入到一个脚本文件,然后在需要删除目录路径下执行FOR /F "tokens=*" %%G IN ('DIR /B /AD /S *.svn*') DO RMDIR /S /Q "%%G"原创 2013-11-17 22:54:52 · 1650 阅读 · 0 评论