In Java it would look something like this (there's most like errors in this but it would be something like as follows):
Code:
import java.net.*;
import javax.swing.*;

public class DoURLS{

  public static void main( String args[] )
  {
    string f, s, e;
    int s, e;

    f = JOptionPane.showInputDialog( "Enter the URL:" );
    s = JOptionPane.showInputDialog( "Start at:" );
    e = JOptionPane.showInputDialog( "End at:" );
  
    try{
      s = Integer.ParseInt( s );
      e = Integer.ParseInt( e );
      openURL( f, s, e );
    }catch (Exception e){}
  }

  public static void openURL( String file, int start, int end ) throws IOException {
    for( int i = start; i < end; i++ )
    {
      URL theURL = new URL( file + i );
      URLConnection theConnection = openConnection();
    }
  }// end openURL
}
I haven't tried this code out but In ASP I would do it as follows (I got some of this code from asp101.com):
Code:
<% @LANGUAGE = "VBScript" %>
<% 
Option Explicit
On Error Resume Next

Dim Inet1, strHTML, intS, intE, I

If Request( "submit" ) <> Empty &&
    Request( "file" ) <> Empty &&
    Request( "start" ) <> Empty &&
    Request( "end" ) <> Empty Then

  set Inet1 = CreateObject("InetCtls.Inet")
  strFile = Request( "file" )
  intS = CInt(Request( "start" ))
  intE = CInt(Request( "end" ))

  Inet1.protocol = 4
  Inet1.accesstype = 1
  Inet1.requesttimeout = 60 

  for I = intS to intE
    Inet1.URL = strFile & I
    strHTML = Inet1.OpenURL
  next 'I

  Set Inet1 = Nothing
End If
%>
<html>
<body>
  <form method = "POST" action = "thisURL.asp">
    <table>
      <tr>
        <td>Enter the url and file name:</td>
        <td><input type="text" size="40" name="file"></td>
      </tr>
      <tr>
        <td>Enter the start number:</td>
        <td><input type="text" size="40" name="start"></td>
      </tr>
      <tr>
        <td>Enter the end number:</td>
        <td><input type="text" size="40" name="end"></td>
      </tr>
    </table>
  </form>
</body>
</html>
In JavaScript something like this:
Code:
var win = null;
var url = "http://wwww.example.com/cgi-bin/search.cgi?=file" 
var w = 10;
var h = 10;
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
  'height='+h
  +',width='+w
  +',top='+TopPosition
  +',left='+LeftPosition
  +',scrollbars='+scroll
  +',resizable';

for( i = 0; i < 10; i++ )
{
  win = window.open(url+i,title,settings);
}
Ok, i haven't tested ANY of this code, so it's probably filled with bugs. Sorry! Hopefully something in this will be able to help you out.