Month: July 2008

利用WMI启动远程进程时,并不会显示一个窗口

……假设远程进程是“计算器” 如果远程计算机运行的是 Windows 2000,您就会看到屏幕上弹出“计算器”。如果远程计算机运行的是 Windows XP 或 Windows Server 2003,“计算器”仍会运行,但您不会在屏幕上看到任何内容;这是因为出于安全原因,在 XP 和 2003 中远程启动的进程会运行在隐藏窗口中。但如果您调用“任务管理器”,您就会看到“计算器”正在运行。”

为什么UltraEdit的“自动检测UNICODE”没起作用?

因为你提供的文件中,没有什么东西能让UE发觉它是UNICODE/UTF-8文件。 UE是这样检测的: UltraEdit attempts to detect the file type when the file is loaded.  It will look for the FFFE marker for Unicode files.  For UTF-8 it will look for one of the following three occurences: 1) File marker FE, FE,FE. 1) String occurences "charset=utf-8" 1) It will interrogate the file and look for the …

为什么UltraEdit的“自动检测UNICODE”没起作用? Read More »

修改Tomcat的运行内存

在catalina.bat中加上红色那行 set _EXECJAVA=%_RUNJAVA% set MAINCLASS=org.apache.catalina.startup.Bootstrap set ACTION=start set SECURITY_POLICY_FILE= set DEBUG_OPTS= set JPDA= set JAVA_OPTS= -Xms512M -Xmx1024M ===JSP中查看当前的内存使用状况= Runtime lRuntime = Runtime.getRuntime(); out.println("*** BEGIN MEMORY STATISTICS ***"); out.println("Free  Memory: "+lRuntime.freeMemory()/1024/1024+"M"); out.println("Max   Memory: "+lRuntime.maxMemory()/1024/1024+"M"); out.println("Total Memory: "+lRuntime.totalMemory()/1024/1024+"M"); out.println("Available Processors : "+lRuntime.availableProcessors()+""); out.println("*** END MEMORY STATISTICS ***");

dos下获取当前系统时间的办法

    dos下的系统时间和日期已经被定义为环境变量。如果要看的话,可以简单地 执行 echo %date% %time% 即可 还可以将日期、时间格式化后再输出,如: "%date:~0,10% "              从当前系统日期中第"0"位开始取出"10"位 "%time:~0,2% "              从当前系统时间中第"0"位开始取出"2"位

FTP的传输方式:ASCII v.s. Binary

摘自Serv-U网站: When using ASCII mode, files are actually changed, depending on the server. ASCII mode is used to translate ASCII text files between the server and client. For example when uploading to a UNIX server [CR][LF] (carriage return line feed) is converted to just [LF]. And when downloading [LF] is converted to [CR][LF]. This is …

FTP的传输方式:ASCII v.s. Binary Read More »