Somebody got me thinking the other day...
He could not run some simple DOS batch files on his XP system,
further questioning revealed he was running a customized bare bones XP.
Anyhow, that leads me to my enquiry...
I'd like to run a batch file which will do the following:
Search these directories:
Code: Select all
%systemroot%\system32
%systemroot%\system32\wbem
for all the files in this list (the standard XP command line tools):
Code: Select all
arp.exe
assoc.exe
at.exe
atmadm.exe
attrib.exe
bootcfg.exe
break.exe
cacls.exe
call.exe
change.exe
chcp.exe
chdir.exe
chkdsk.exe
chkntfs.exe
cipher.exe
cls.exe
cmd.exe
cmstp.exe
color.exe
command.exe
comp.exe
compact.exe
convert.exe
copy.exe
cprofile.exe
date.exe
defrag.exe
del.exe
dir.exe
diskcomp.exe
diskcopy.exe
diskpart.exe
doskey.exe
driverquery.exe
echo.exe
endlocal.exe
eventcreate.exe
eventquery.exe
eventtriggers.exe
evntcmd.exe
exit.exe
expand.exe
fastopen.exe
fc.exe
find.exe
findstr.exe
finger.exe
flattemp.exe
for.exe
format.exe
fsutil.exe
ftp.exe
ftype.exe
getmac.exe
goto.exe
gpresult.exe
gpupdate.exe
graftabl.exe
help.exe
helpctr.exe
hostname.exe
if.exe
ipconfig.exe
ipseccmd.exe
ipxroute.exe
irftp.exe
label.exe
lodctr.exe
logman.exe
lpq.exe
lpr.exe
macfile.exe
mkdir.exe
mmc.exe
mode.exe
more.exe
mountvol.exe
move.exe
msiexec.exe
msinfo32.exe
nbtstat.exe
net.exe
netsh .exe
netstat.exe
nslookup.exe
ntbackup.exe
ntsd.exe
openfiles.exe
pagefileconfig.vbs
path.exe
pathping.exe
pause.exe
pbadmin.exe
pentnt.exe
perfmon.exe
ping.exe
popd.exe
print.exe
prncnfg.exe
prndrvr.exe
prnjobs.exe
prnmngr.exe
prnport.exe
prnqctl.exe
prompt.exe
query.exe
rasdial.exe
rcp.exe
recover.exe
reg.exe
regsvr32.exe
relog.exe
rem.exe
rename.exe
replace.exe
reset session.exe
rexec.exe
route.exe
routemon.exe
rsh.exe
rsm.exe
runas.exe
sc.exe
schtasks.exe
secedit.exe
sfc.exe
shift.exe
shutdown.exe
sort.exe
start.exe
subst.exe
systeminfo.exe
taskkill.exe
tasklist.exe
tcmsetup.exe
telnet.exe
tftp.exe
time.exe
title.exe
tracerpt.exe
tracert.exe
tree.exe
type.exe
typeperf.exe
unlodctr.exe
ver.exe
verify.exe
vol.exe
vssadmin.exe
w32tm.exe
wmic.exe
xcopy.exe
And then outputs a text file (which pops up for viewing)
listing all the missing files.
for example:
Code: Select all
LISTING OF MISSING FILES
findstr.exe
mountvol.exe
popd.exe
shift.exe
vssadmin.exe
xcopy.exe
or else, for example:
Code: Select all
LISTING OF MISSING FILES
There are no files missing.
I don't know how to construct such a batch file.
Is this pretty straightforward or is it a curly one?
Thanks for your time.