發表文章

目前顯示的是有「Windows XP」標籤的文章

Set the max no. of port and tcp timeout on window

Run regedit Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters Create the following setting: value name: MaxUserPort value type: DWORD value: 65534 effective range: 5000-65534 default: 5000 value name: TCPTimedWaitDelay value type: DWORD value: 30

Windows cannot delete file or folder

Reboot Reboot, then delete. DEL or RMDIR Open a command line window (WindowsKey + R, enter: cmd). Move to the folder in question by means of CD commands like CD \ and CD foldername. Delete the file or folder by using the DEL command to delete files or the RMDIR (remove directory) command to remove directories (folders). Kill explorer.exe If this, on its own, is still not enough, then leave the command line window on the desktop, open Task Manager (Ctrl + Shift + Esc), and kill all explorer.exe tasks. Your desktop will go blank, except for the windows already open. Now try to delete the offending file by means of the DEL command, or folder by means of the RMDIR (remove directory) command, in the command line window, as described above. After that, in the command line window enter: explorer to restart your desktop. If you closed the command line window, you can still restart explorer by opening the Task Manager by holding down the Ctrl and Shift keys and briefly p...

Keep scheduled java task running after user logoff

In the batch file for running the java program, you should specify the java start argument with -Xrs. For example: javaw -Xrs -jar  shceduled.jar Java intercepts user logoff events and stops execution. This is solved by adding   -Xrs   to the command line running the application, causing the JVM to ignore the logoff event.