Wednesday, March 21, 2012

Pause in dos (.bat files)

For any MS-DOS or Windows version with a TCP/IP client, PING can be used to delay execution for a number of seconds.
If specified (-w switch), PING will wait for a number of milliseconds between two pings before giving a time-out.

PING 1.1.1.1 -n 1 -w 60000 >NUL

Tuesday, March 20, 2012

Automatic submit on enter on input type=text ?

Depending on the browser, the Enter key may only cause a form submission if the form has exactly one text field, or only when there is a submit button present. The interface should not rely on a particular behavior for this key unless the issue is forced by observing the keypress event for presses of the Enter key.

so fix is add this
" input type="text" id="Text1" style="display:none;" /"