Misc stuff
From Dw0rm's Wiki
[edit]
"The input line is too long" error when running a bat file.
- This error indicates that the Windows command line limit of 1024 characters has been exceeded, probably due to a long path name used.
- Solution : use "subst" to map any long directory names to virtual drives. (Make sure that driver letter is not used on the host system before using it in the batch file.
subst w: c:\TestEnvironment\Beta\WebSphere\AppServer
SET JAVA_HOME=w:\java
[edit]
Windows name resolution
- to get a windows machine resolve names to ip addresses without a dns server available (or when the dns entry is not known to the dns server) use the "hosts" file
- Windows 95/98/Me c:\windows\hosts
- Windows NT/2000/XP Pro c:\winnt\system32\drivers\etc\hosts
- Windows XP Home c:\windows\system32\drivers\etc\hosts
# Copyright (c) 1998 Microsoft Corp. # This is a sample HOSTS file used by Microsoft TCP/IP stack for Windows98 # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # For example: # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost
(see here for linux hosts info)
