- 浏览: 240703 次
- 性别:
- 来自: 北京
最新评论
-
nethub2:
come_for_dream 写道不能启动其他的程序么,比如Q ...
在java中启动其他程序。 -
come_for_dream:
不能启动其他的程序么,比如QQ
在java中启动其他程序。
文章列表
Email.bat---------------
REM send Email
REM ==========
set emailRecvList=p@e.com
set emailFrom=U@e.com
set emailSubject=Email Testing
set emailBodyContent=20131007_testMail.txt
set ipaddress=11.11.11.11
%windir%\system32\wscript.exe sendmail.vbs -t "%emailRecvList%" -f " ...
call D:\s\setEnv_D.bat
ECHO.>printAvailable.log
IF EXIST printAvailableHistory.log GOTO :GO_PRINT_LOG
ECHO.>printAvailableHistory.log
:GO_PRINT_LOG
CALL printReport.bat "AVAILABLE" "pap_feed.txt" "printAvailableFTP.dat" "printAvailable.log&quo ...
uploadSMCHB.bat - Shortcut
--------------
call setenv_xxx.bat
CALL checkSMCFile
CALL runImport
CALL backSMCFile
IF EXIST importCheck.OK GOTO :ok_import_chk
CALL callPager.bat " SMC import error!"
:ok_import_chk
CALL gift_print
CALL gift_ftp
IF EXIST smcftpCheck.OK GOTO ...
call pager
- 博客分类:
- batch code
REM
REM Page System Programmer - change the following e-mail address when needed
REM
SET HOST=10.2.3.4
SET SENDER=xxx@ch.com
D:\l\gbmail -h %HOST% -from %HOST% -to email.@a.com -s %1 -file C:\migration\check_bat\app01_db.zip
pause
public static String getContent(String requestPage) throws IOException {
try {
String contentPage = (String) cacheContent.get(requestPage);
if (contentPage == null) {
String templatePath = AwsResourceReader.in.getString(requestPage);
...
- 去除不支持的字符
StringBuffer buffer = new StringBuffer(value);
boolean contains = false;
for (int i = 0; i < unsupportedCharacterList.size(); i++) {
String unsupportStr = (String) unsupportedCharacterList.get(i);
int beginIdx = buffer.toString().ind ...
//截取字符串
sb = 'IC','PRODTITLE','PASUPER'
StringTokenizer st = new StringTokenizer(fieldValues, ";");
StringBuffer sb = new StringBuffer();
Map logoLevelMap = new HashMap();
while (st.hasMoreElements()) {
String token = st.nextToken();
if (sb.length() == 0) {
sb.append ...
<div>
<a href="http://www.baidu.com" onclick="javascript:alert('baidu')">百度</a>
Java<font size="-1"><sup>TM</sup></font> programming language.<br/>
Java<font size="-6">TM</font> programming lan ...
/**
- 用输入输出流开启连接,添加参数,然后获取参数值
- 向一个文件中写入内容
- 从文件中读出内容
- 从缓冲读入流中读取内容然后处理
*/
//用输入输出流开启连接,添加参数,然后获取参数值
URL url = new URL(fileDownloadPath);
URLConnection connection = url.openConnection();
connection.setDoOutput(true);
PrintWriter outStream = new PrintWriter(connection.get ...
public static void main(String[] args) throws Exception{
if (args.length != 2){
System.out.println("Please enter feed file");
return;
}
String feedFileName = args[0];
String logFileName = args[1];
ObjectInputStream ...
private Hashtable loadAgentReference(int cond) throws Exception{
if (agentFeedPath == null || agentFeedPath.length() == 0){
Properties pathProperties = new Properties();
pathProperties.load(new FileInputStream("deliveryxxx.properties"));
for ...
BufferedWriter ftp = new BufferedWriter(new FileWriter(ftpFile));
BufferedWriter feed = new BufferedWriter(new FileWriter(noteFile));
// ftp.write("open “+ip);
// ftp.newLine();
// ftp.write("open www1.man.com");
// ...
<html>
<head>
<script language=javascript>
ie = (document.all)? true:false
if (ie){
function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode==13){this.document.form1.submit();}}
}
</script>
</head>
<body>
<form act ...
NOT IN
SELECT DISTINCT MD001 FROM BOMMD WHERE MD001 NOT IN (SELECT MC001 FROM BOMMC)
NOT EXISTS,exists的用法跟in不一样,一般都需要和子表进行关联,而且关联时,需要用索引,这样就可以加快速度
select DISTINCT MD001 from BOMMD WHERE NOT EXISTS (SELECT MC001 FR ...
在 Spring 系列 的第 3 部分中,我介绍 Spring MVC 框架。就像在以前的文章中一样,我用银行示例介绍如何建模和构建简单的应用程序。示例应用程序包含了已经学过的一些技术(例如依赖注入),但是主要演示 Spring MVC 的特性。 ...