Running Windows commands and utilities in Interix

Windows commands can be run in an Interix command shell. To do so, however, you must include the correct extension (.com or .exe), or run cmd.exe with the proper syntax to run built-in commands (such as cmd.exe /c dir to run the dir command).

To make running Windows commands easier, a set of shell scripts is located in /usr/contrib/win32/bin, which is included in your PATH. These scripts run the corresponding Windows program, passing any parameters supplied on the Interix command line. If a Windows command reads from standard input, it can receive input redirected from an Interix command. If a Windows command writes to standard output, its output can be redirected to an Interix command.

In addition, scripts are provided to make it easy to run many Windows utilities (such as Notepad) that are often started using either a command prompt or the Run command.

If the name of a Windows command or utility is the same as an Interix command or utility, the name of the script in /usr/contirb/win32/bin is prepended with the letter w. For example, to run the Windows find command in an Interix command shell, use wfind on the command line.

The following table lists the scripts in /usr/contrib/win32/bin and the Windows command or utility that it runs. See Windows NT or Windows 2000 Help for more information about these commands and utilities.

Some of the commands and utilities listed might not be available in Windows NT 4.0 or in Windows 2000.

Script Command/Utility
append Windows append command
arp Windows arp command
assoc Windows assoc command
attrib Windows attrib command
backup Windows backup command
cacls Windows cacls command
calc Windows calc utility
cdplayer Windows cdplayer utility
charmap Windows charmap utility
chcp Windows chcp command
chkdsk Windows chkdsk command
chkntfs Windows chkntfs command
clipbrd Windows clipbrd utility
clock Windows clock command
cmd Windows cmd command
comp Windows comp command
compact Windows compact command
control Windows control utility
convert Windows convert utility
copy Windows copy command
dcomcnfg Windows dcomcnfg utility
ddeshare Windows ddeshare utility
del Windows del command
dir Windows dir command
diskcomp Windows disccomp command
diskcopy Windows diskcopy command
diskperf Windows diskperf command
doskey Windows doskey command
dosx Windows dosx command
drwatson Windows drwatson utility
drwtsn32 Windows drwtsn32 utility
edit Windows edit command
edlin Windows edlin command
erase Windows erase command
eventvwr Windows eventvwr utility
exe2bin Windows exe2bin command
fastopen Windows fastopen command
findstr Windows findstr command
fontview Windows fontview utility
forcedos Windows forcedos command
format Windows format command
ftype Windows ftype command
graftabl Windows graftabl command
grpconv Windows grpconv utility
help Windows help command
inetins Windows inetins utility
internat Windows internat utility
ipconfig Windows ipconfig command
keyb Windows keyb command
label Windows label command
loadfix Windows loadfix command
lodctr Windows lodctr command
md Windows md command
mem Windows mem command
mode Windows mode command
move Windows move command
mplay32 Windows mplay32 utility
mscdexnt Windows mscdexnt command
mspaint Windows mspaint utility
musrmgr Windows musrmgr utility
nbtstat Windows nbtstat command
net Windows net command
netstat Windows netstat command
nlsfunc Windows nlsfunc command
notepad Windows notepad utility
ntbackup Windows ntbackup utility
packager Windows packager utility
path Windows path command
pause Windows pause command
pbrush Windows pbrush utility
pentnt Windows pentnt command
perfmon Windows perfmon utility
portuas Windows portuas command
posix Interix posix(1w) command
progman Windows progman utility
prompt Windows prompt command
psxrun Interix psxrun(1w) command
qbasic Windows qbasic command
rasadmin Windows rasadmin utility
rasautou Windows rasautou command
rasdial Windows rasdial command
rasman Windows rasman command
rasmon Windows rasmon utility
rasphone Windows rasphone utility
rassprxy Windows rassprxy command
rd Windows rd command
rdisk Windows rdisk utility
recover Windows recover command
regedt32 Windows regedt32 utility
ren Windows ren command
rename Windows rename command
replace Windows replace command
restore Windows restore command
route Windows route command
savedump Windows savedump utility
setver Windows setver command
sndrec32 Windows sndrec32 utility
sndvol32 Windows sndvol32 utility
start Windows start command
subst Windows subst command
sysedit Windows sysedit utility
syskey Windows syskey utility
taskman Windows taskman utility
taskmgr Windows taskmgr utility
tracert Windows tracert command
tree Windows tree command
unlodctr Windows unlodctr command
ver Windows ver command
verify Windows verify command
vol Windows vol command
wat Windows at command
wdate Windows date command
wecho Windows echo command
wexit Windows exit command
wexpand Windows expand command
wfc Windows fc command
wfind Windows find command
wfinger Windows finger command
wftp Windows ftp command
whostname Windows hostname command
winchat Windows winchat utility
windisk Windows windisk utility
winfile Windows winfile utility
winhlp32 Windows winhlp32 utility
winmsd Windows winmsd utility
winspool Windows winspool command
winver Windows winver utility
wmkdir Windows mkdir command
wmore Windows more command
wnslookup Windows nslookup command
wping Windows ping command
wprint Windows print command
wrcp Windows rcp command
wrmdir Windows rmdir command
wrsh Windows rsh command
wset Windows set command
wsort Windows sort command
wtelnet Windows telnet utility
wtftp Windows tftp command
wtime Windows time command
wtype Windows type command
wwrite Windows write utility
xcopy Windows xcopy command