海鸥航迹

学习之笔记,好文之收集。

导航

2010年9月12日 #

精彩批处理代码

摘要: 接收键盘输入字符串的程序 :: Get user input - includes error check@echo offecho e102'set %%1='> %temp%.\t1.datfor %%? in (w q) do echo %%?>> %temp%.\t1.dat:inputecho.echo Type input:FC con nul /lb1 /n |FI... 阅读全文

posted @ 2010-09-12 10:02 海天一鸥 阅读(494) 评论(0) 推荐(1) 编辑

%cd% 于%~dp0的差别

摘要: %cd% is available either to a batch file or at the command prompt and expands to the drive letter and path of the current directory (which can change e.g. by using the CD command) %~dp0 is only availa... 阅读全文

posted @ 2010-09-12 09:57 海天一鸥 阅读(612) 评论(0) 推荐(0) 编辑

详细的DOS命令和符合说明

摘要: 1 echo 和 @回显命令@         #关闭单行回显echo off      #从下一行开始关闭回显@echo off      #从本行开始关闭回显。一般批处理第一行都是这个echo on       #从下一行开始打开回显echo        #显示当前是 echo off 状态还是 echo on 状态echo.       #输出一个”回车换行”,空白行 #(同echo, e... 阅读全文

posted @ 2010-09-12 00:34 海天一鸥 阅读(3782) 评论(1) 推荐(1) 编辑

命令行启动java程序不显示控制台窗口

摘要: 关键:start javaw –jar xxx.jar 一个例子: ============================================= @ECHO OFF REM "zcx eclipse help script" set ehome="f:\eclipse" pushd %ehome% if "%1" == "start" ( explorer http://localh... 阅读全文

posted @ 2010-09-12 00:05 海天一鸥 阅读(4236) 评论(0) 推荐(0) 编辑