in reply to How to Flush SIGINT on Win32?

Another "work around" to avoid using the .pl suffix is to add that suffix to the PATHEXT environment variable. This would allow you to call the Perl script directly from the command line as you would a batch script.

In your case, you would just use:

C:\> sigint
Here's the Windows magic:

1) Control Panel --> System --> "Advanced" tab --> "Environment Variables" button.

2) In the "System variables" section, locate the "PATHEXT".

3) Press "Edit" button.

4) In the "Variable value:" text box that pops up, go to the end and add the text ";.PL" without the double quotes. (That's semicolon period capital P capital L.)

5) Press the "OK" button.

6) Press the "OK" button ("Environment Variables" window).

7) Press the "OK" button ("System Properties" window).

8) Close any open cmd.exe windows and open a new one.

Before:

{C} > set | find "PATHEXT" PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH; {C} > dir /b \usr\bin\crapps.pl crapps.pl {C} > crapps 'crapps' is not recognized as an internal or external command, operabl +e program or batch file. {C} >
AFTER:
{C} > set | find "PATHEXT" PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PL; {C} > dir /b \usr\bin\crapps.pl crapps.pl {C} > crapps C:\usr\bin\crapps.pl: host required Usage: crapps [options] [SNMP options] | [Telnet options] host ... crapps -P password [options] crapps -S svc [options] {C} >