From: "Si Owen" <si@wordcraft.co.uk To: <peeter@accessv.com Subject: ext2nt batch file for 4NT Hi,
I downloaded your ext2nt utility and am impressed by what it can do. I use 4NT (4DOS for NT) as my shell, and have written a 4NT batch file wrapper to set up aliases for more transparent use.
To set up for using ext2nt, run ext2.btm, to remove aliases type exit.
Once set up you can use 'lcd' 'lpwd' 'lls' 'lcp' and 'lcopy' to access the ext2nt commands. The current prompt is changed to reflect the current directory under Linux (this is restored to $p$g on 'exit').
Also, the copy command allows the same flexibility as the normal command-prompt. Empty target implies current directory, target as directory will use the source filename, just filename uses current directory and full pathname as expected.
I had extra code to automatically check the drive:partition values but sometimes I get a 'buffer too small' error from e2part, so I had to remove it.
If you like it, why not add it to your ext2nt package as a freebee.
Regards Si --- Sample usage: t:\ext2 / # lcd /etc/ppp /etc/ppp # lls -l -rw------- 1 0 0 0 Feb 13 1997 connect-errors -rwx------ 1 0 0 403 Feb 13 1997 ip-down -rwx------ 1 0 0 430 Feb 13 1997 ip-up -rw-r--r-- 1 0 0 0 Feb 13 1997 options -rwx------ 1 0 0 397 Oct 16 1995 ppp-on-dialer /etc/ppp # lcat ip-down #!/bin/sh # /etc/ppp/ip-down: the command executed by pppd when IP goes down. # Copyright 1994 John A. Phillips - john@linux.demon.co.uk # # Parameters: # $1 = network interface used (e.g. ppp0) # $2 = pathname of serial device file (e.g. /dev/modem or /dev/ttyS1) # $3 = device speed (e.g. 38400) # $4 = local address (e.g. 158.152.16.94) # $5 = remote address (e.g. 158.152.1.222) /etc/ppp # lcp ip-up Copying ip-up to T:\\ip-up... /etc/ppp # lcp ip-down f:\ Overwrite existing 'F:\\ip-down'? y Copying ip-down to F:\\ip-down... /etc/ppp # lpwd /etc/ppp /etc/ppp # exit t:\